service_resolve.py
999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# coding=utf-8
#author: 4N
#createtime: 2021/9/22
#email: nheweijun@sina.com
from app.util.component.ApiTemplate import ApiTemplate
from app.util.component.FileProcess import FileProcess
import os
class Api(ApiTemplate):
'''
解析md文件
'''
api_name = "服务resolve"
def process(self):
res = {}
try:
parent = os.path.dirname(os.path.realpath(__file__))
dir_path, store_file = FileProcess.save(parent)
except Exception as e:
raise e
return res
api_doc = {
"tags": ["服务接口"],
"parameters": [
{"name": "guid",
"in": "formData",
"type": "string",
"description": "guid"},
],
"responses": {
200: {
"schema": {
"properties": {
}
}
}
}
}