feat: 格式调整2
This commit is contained in:
parent
69ff37e19a
commit
635805f041
13
main.py
13
main.py
|
@ -176,8 +176,9 @@ patent_patterns = [
|
|||
responses={
|
||||
200: {
|
||||
"description": "成功示例",
|
||||
"examples": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"example": {
|
||||
"标准号": "GB/T 1234-2020",
|
||||
"中文名称": "低热矿渣硅酸盐水泥",
|
||||
"英文名称": "Low-heat portland slag cement",
|
||||
|
@ -190,14 +191,18 @@ patent_patterns = [
|
|||
"起草人": "张三、李四",
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
},
|
||||
400: {
|
||||
'description': '错误示例',
|
||||
"examples": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"detail": "Invalid file type. Please choose 'standard' or 'patent'.",
|
||||
"example": {
|
||||
"detail": "Invalid file type. Please choose 'standard' or 'patent'.",
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue