From a70ac00bd91e203653a38f93910be759a35eacb1 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 11 Oct 2024 16:34:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96swagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/main.py b/main.py index 591598b..01f6ce0 100644 --- a/main.py +++ b/main.py @@ -178,32 +178,31 @@ patent_patterns = [ "description": "成功示例", "content": { "application/json": { - "example": { - "标准号": "GB/T 1234-2020", - "中文名称": "低热矿渣硅酸盐水泥", - "英文名称": "Low-heat portland slag cement", - "发布部门": "国家质量监督检验检疫总局", - "发布日期": "2020-01-01", - "实施日期": "2020-07-01", - "提出单位": "中国建筑材料联合会", - "归口单位": "国家建筑材料工业技术监督研究中心", - "起草单位": "中国建筑材料科学研究总院", - "起草人": "张三、李四", - } + "example": { + "标准号": "GB/T 1234-2020", + "中文名称": "低热矿渣硅酸盐水泥", + "英文名称": "Low-heat portland slag cement", + "发布部门": "国家质量监督检验检疫总局", + "发布日期": "2020-01-01", + "实施日期": "2020-07-01", + "提出单位": "中国建筑材料联合会", + "归口单位": "国家建筑材料工业技术监督研究中心", + "起草单位": "中国建筑材料科学研究总院", + "起草人": "张三、李四", + } + }, }, - } - }, 400: { - 'description': '错误示例', + "description": "错误示例", "content": { "application/json": { "example": { "detail": "Invalid file type. Please choose 'standard' or 'patent'.", } } - } - } + }, + }, }, ) async def extract_info(