index.py
773 Bytes
# coding=utf-8
#author: 4N
#createtime: 2021/2/23
#email: nheweijun@sina.com
import hashlib
from flask import current_app as app
import socket
from app.util.component.ApiTemplate import ApiTemplate
class Api(ApiTemplate):
def process(self):
return {"Name":socket.gethostname(),"Type":"DMapManager"}
api_doc={
"tags":["Index接口"],
"description":"Index接口",
"parameters":[
],
"responses":{
200:{
"schema":{
"properties":{
"content":{
"type": "string",
"description": "The name of the user"
}
}
}
}
}
}