{ "openapi": "3.1.0", "info": { "title": "智慧传承系统pc端", "description": "智慧传承系统pc端—相关接口文档", "version": "1.0-SNAPSHOT" }, "paths": { "/business/add": { "post": { "tags": ["专病管理API"], "summary": "新增专病", "operationId": "add_1", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpecificDiseaseDetail" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/AjaxResult" } } } } } } } }, "components": { "schemas": { "SpecificDiseaseDetail": { "type": "object", "properties": { "pid": { "type": "integer", "format": "int64", "description": "主键ID" }, "deptId": { "type": "integer", "format": "int64", "description": "工作室ID" }, "diseaseName": { "type": "string", "description": "专病名称", "minLength": 1 }, "imageUrl": { "type": "string", "description": "形象图片url" }, "specificDescribe": { "type": "string", "description": "描述" } }, "required": ["deptId", "diseaseName"] }, "AjaxResult": { "type": "object", "description": "接口返回对象", "properties": { "code": { "type": "integer", "format": "int32", "description": "状态码" }, "msg": { "type": "string", "description": "提示语" }, "data": { "description": "数据对象" } } } } } }