// Package docs GENERATED BY SWAG; DO NOT EDIT // This file was generated by swaggo/swag package docs import "github.com/swaggo/swag" const docTemplate = `{ "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { "description": "{{escape .Description}}", "title": "{{.Title}}", "contact": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/api/role-api": { "post": { "security": [ { "Bearer": [] } ], "description": "修改角色路由权限", "consumes": [ "application/json" ], "tags": [ "角色" ], "summary": "对接统一身份认证(前端暂时忽略)", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.RoleApiUpdateReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/dosage-form/add": { "post": { "security": [ { "Bearer": [] } ], "description": "添加剂型", "consumes": [ "application/json" ], "tags": [ "剂型" ], "summary": "添加剂型", "parameters": [ { "description": "data", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.DosageFormInsertReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/dosage-form/delete": { "post": { "security": [ { "Bearer": [] } ], "description": "删除剂型", "consumes": [ "application/json" ], "tags": [ "剂型" ], "summary": "删除剂型", "parameters": [ { "description": "请求参数", "name": "id", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.DosageFormDeleteReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/dosage-form/detail": { "post": { "security": [ { "Bearer": [] } ], "description": "通过id获取剂型", "tags": [ "剂型" ], "summary": "通过id获取剂型", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.DosageFormGetReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.DosageForm" } } } ] } } } } }, "/dosage-form/edit": { "post": { "security": [ { "Bearer": [] } ], "description": "修改剂型", "consumes": [ "application/json" ], "tags": [ "剂型" ], "summary": "修改剂型", "parameters": [ { "description": "body", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.DosageFormUpdateReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/dosage-form/list": { "post": { "security": [ { "Bearer": [] } ], "description": "获取剂型列表", "tags": [ "剂型" ], "summary": "获取剂型列表", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.DosageFormPageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Page" }, { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/models.DosageForm" } } } } ] } } } } }, "/enterprise/add": { "post": { "security": [ { "Bearer": [] } ], "description": "添加生产企业", "consumes": [ "application/json" ], "tags": [ "生产企业" ], "summary": "添加生产企业", "parameters": [ { "description": "data", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.EnterpriseInsertReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/enterprise/delete": { "post": { "security": [ { "Bearer": [] } ], "description": "删除生产企业", "consumes": [ "application/json" ], "tags": [ "生产企业" ], "summary": "删除生产企业", "parameters": [ { "description": "请求参数", "name": "id", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.EnterpriseDeleteReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/enterprise/detail": { "post": { "security": [ { "Bearer": [] } ], "description": "通过id获取生产企业", "tags": [ "生产企业" ], "summary": "通过id获取生产企业", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.EnterpriseGetReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.Enterprise" } } } ] } } } } }, "/enterprise/edit": { "post": { "security": [ { "Bearer": [] } ], "description": "修改生产企业", "consumes": [ "application/json" ], "tags": [ "生产企业" ], "summary": "修改生产企业", "parameters": [ { "description": "body", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.EnterpriseUpdateReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/enterprise/list": { "post": { "security": [ { "Bearer": [] } ], "description": "获取生产企业列表", "tags": [ "生产企业" ], "summary": "获取生产企业列表", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.EnterprisePageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Page" }, { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/models.Enterprise" } } } } ] } } } } }, "/medicine-template/add": { "post": { "security": [ { "Bearer": [] } ], "description": "添加模版字段", "tags": [ "药品信息模板" ], "summary": "添加模版字段", "parameters": [ { "description": "data", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.MedicineTemplateInsertReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/medicine-template/columns": { "post": { "security": [ { "Bearer": [] } ], "description": "获取品名列表", "tags": [ "药品信息模板" ], "summary": "获取品名列表", "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Page" }, { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/models.MedicineTemplate" } } } } ] } } } } }, "/medicine-template/delete": { "post": { "security": [ { "Bearer": [] } ], "description": "删除模版字段", "consumes": [ "application/json" ], "tags": [ "药品信息模板" ], "summary": "删除模版字段", "parameters": [ { "description": "body", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.MedicineTemplateDeleteReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/medicine-template/edit": { "post": { "security": [ { "Bearer": [] } ], "description": "修改模版字段", "tags": [ "药品信息模板" ], "summary": "修改模版字段", "parameters": [ { "description": "body", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.MedicineTemplateUpdateReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/medicine-template/list": { "post": { "security": [ { "Bearer": [] } ], "description": "获取品名列表", "tags": [ "药品信息模板" ], "summary": "获取品名列表", "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Page" }, { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/models.MedicineTemplate" } } } } ] } } } } }, "/medicine-template/list-for-stock": { "post": { "security": [ { "Bearer": [] } ], "description": "获取入库列表", "tags": [ "药品信息模板" ], "summary": "获取入库列表", "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Page" }, { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/models.MedicineTemplate" } } } } ] } } } } }, "/medicine/basic-data-stat": { "post": { "security": [ { "Bearer": [] } ], "description": "基本数据统计", "tags": [ "药品" ], "summary": "基本数据统计", "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/medicine/batch-number": { "post": { "security": [ { "Bearer": [] } ], "description": "批号列表", "tags": [ "药品" ], "summary": "批号列表", "parameters": [ { "description": "body", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.MedicineBatchNumberReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/product/add": { "post": { "security": [ { "Bearer": [] } ], "description": "添加品名", "consumes": [ "application/json" ], "tags": [ "品名" ], "summary": "添加品名", "parameters": [ { "description": "data", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.ProductInsertReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/product/delete": { "post": { "security": [ { "Bearer": [] } ], "description": "删除品名", "consumes": [ "application/json" ], "tags": [ "品名" ], "summary": "删除品名", "parameters": [ { "description": "请求参数", "name": "id", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.ProductDeleteReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/product/detail": { "post": { "security": [ { "Bearer": [] } ], "description": "通过id获取品名", "tags": [ "品名" ], "summary": "通过id获取品名", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.ProductGetReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.Product" } } } ] } } } } }, "/product/edit": { "post": { "security": [ { "Bearer": [] } ], "description": "修改品名", "consumes": [ "application/json" ], "tags": [ "品名" ], "summary": "修改品名", "parameters": [ { "description": "body", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.ProductUpdateReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/product/list": { "post": { "security": [ { "Bearer": [] } ], "description": "获取品名列表", "tags": [ "品名" ], "summary": "获取品名列表", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.ProductPageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Page" }, { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/models.Product" } } } } ] } } } } }, "/sales/excel": { "post": { "security": [ { "Bearer": [] } ], "description": "销售报表", "tags": [ "销售管理" ], "summary": "销售报表", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SalesPageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/sales/list": { "post": { "security": [ { "Bearer": [] } ], "description": "销售管理", "tags": [ "销售管理" ], "summary": "销售管理", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SalesPageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/sales/order_list": { "post": { "security": [ { "Bearer": [] } ], "description": "出库单", "tags": [ "销售管理" ], "summary": "出库单", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SalesStockOutExcelReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/spec/add": { "post": { "security": [ { "Bearer": [] } ], "description": "添加规格", "consumes": [ "application/json" ], "tags": [ "规格" ], "summary": "添加规格", "parameters": [ { "description": "data", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SpecInsertReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/spec/delete": { "post": { "security": [ { "Bearer": [] } ], "description": "删除规格", "consumes": [ "application/json" ], "tags": [ "规格" ], "summary": "删除规格", "parameters": [ { "description": "请求参数", "name": "id", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SpecDeleteReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/spec/detail": { "post": { "security": [ { "Bearer": [] } ], "description": "通过id获取规格", "tags": [ "规格" ], "summary": "通过id获取规格", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SpecGetReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.Spec" } } } ] } } } } }, "/spec/edit": { "post": { "security": [ { "Bearer": [] } ], "description": "修改规格", "consumes": [ "application/json" ], "tags": [ "规格" ], "summary": "修改规格", "parameters": [ { "description": "body", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SpecUpdateReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/spec/list": { "post": { "security": [ { "Bearer": [] } ], "description": "获取规格列表", "tags": [ "规格" ], "summary": "获取规格列表", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SpecPageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Page" }, { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/models.Spec" } } } } ] } } } } }, "/stock-template/in": { "post": { "security": [ { "Bearer": [] } ], "description": "删除入库", "tags": [ "库存" ], "summary": "删除入库", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.StockTemplateOutDeleteReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/stock-template/in/list": { "post": { "security": [ { "Bearer": [] } ], "description": "入库列表", "tags": [ "库存" ], "summary": "入库列表", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.StockTemplateInPageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/stock-template/inventory/list": { "post": { "security": [ { "Bearer": [] } ], "description": "收发登记表word", "tags": [ "库存" ], "summary": "收发登记表word", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.TransportRecordWordReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/stock-template/out": { "post": { "security": [ { "Bearer": [] } ], "description": "批量出库", "tags": [ "库存" ], "summary": "批量出库", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.StockTemplateOutInsertReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/stock-template/out/list": { "post": { "security": [ { "Bearer": [] } ], "description": "出库列表", "tags": [ "库存" ], "summary": "出库列表", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.StockTemplateOutPageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/stock/stat": { "post": { "security": [ { "Bearer": [] } ], "description": "首页出入库信息统计", "tags": [ "库存" ], "summary": "首页出入库信息统计", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.StockStatListReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/stock/stat/excel": { "post": { "security": [ { "Bearer": [] } ], "description": "库存信息表", "tags": [ "库存" ], "summary": "库存信息表-每个商品、生产企业、规格、批号数量", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.StockStatListReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/stock/unit/list": { "post": { "security": [ { "Bearer": [] } ], "description": "获取收货单位,发货单位,收发单位", "tags": [ "库存" ], "summary": "获取收货单位,发货单位,收发单位", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.StockOperatorListReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Page" } } } } }, "/unit/add": { "post": { "security": [ { "Bearer": [] } ], "description": "添加单位", "consumes": [ "application/json" ], "tags": [ "单位" ], "summary": "添加单位", "parameters": [ { "description": "data", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.UnitInsertReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/unit/delete": { "post": { "security": [ { "Bearer": [] } ], "description": "删除单位", "consumes": [ "application/json" ], "tags": [ "单位" ], "summary": "删除单位", "parameters": [ { "description": "请求参数", "name": "id", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.UnitDeleteReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/unit/detail": { "post": { "security": [ { "Bearer": [] } ], "description": "通过id获取单位", "tags": [ "单位" ], "summary": "通过id获取单位", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.UnitGetReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/models.Unit" } } } ] } } } } }, "/unit/edit": { "post": { "security": [ { "Bearer": [] } ], "description": "修改单位", "consumes": [ "application/json" ], "tags": [ "单位" ], "summary": "修改单位", "parameters": [ { "description": "body", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.UnitUpdateReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/unit/list": { "post": { "security": [ { "Bearer": [] } ], "description": "获取单位列表", "tags": [ "单位" ], "summary": "获取单位列表", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.UnitPageReq" } } ], "responses": { "200": { "description": "{\"code\": 200, \"data\": [...]}", "schema": { "allOf": [ { "$ref": "#/definitions/response.Page" }, { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/models.Unit" } } } } ] } } } } } }, "definitions": { "dto.BatchStockTemplateInInsertReq": { "type": "object", "properties": { "stockInList": { "type": "array", "items": { "type": "object", "properties": { "date": { "description": "入库日期", "type": "string" }, "forwardingUnit": { "description": "发货单位", "type": "string" }, "medicineInfo": { "description": "药品信息", "type": "object", "additionalProperties": true }, "operator": { "description": "经办人", "type": "string" }, "quantity": { "description": "数量", "type": "integer" }, "unitPrice": { "description": "购入单价", "type": "number" } } } } } }, "dto.DosageFormDeleteReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.DosageFormGetReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.DosageFormInsertReq": { "type": "object", "properties": { "name": { "description": "剂型", "type": "string", "example": "剂型" } } }, "dto.DosageFormPageReq": { "type": "object", "properties": { "name": { "description": "名称", "type": "string", "example": "" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 } } }, "dto.DosageFormUpdateReq": { "type": "object", "properties": { "id": { "type": "integer", "example": 1 }, "name": { "description": "剂型", "type": "string", "example": "剂型" } } }, "dto.EnterpriseDeleteReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.EnterpriseGetReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.EnterpriseInsertReq": { "type": "object", "properties": { "name": { "description": "生产企业", "type": "string", "example": "生产企业" } } }, "dto.EnterprisePageReq": { "type": "object", "properties": { "name": { "description": "名称", "type": "string", "example": "" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 } } }, "dto.EnterpriseUpdateReq": { "type": "object", "properties": { "id": { "type": "integer", "example": 1 }, "name": { "description": "生产企业", "type": "string", "example": "生产企业" } } }, "dto.MedicineBatchNumberReq": { "type": "object", "properties": { "batchNumber": { "description": "批号", "type": "string" }, "enterpriseId": { "description": "生产企业id", "type": "integer" }, "productId": { "description": "药品名称id", "type": "integer" } } }, "dto.MedicineTemplateDeleteReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.MedicineTemplateInitializeReq": { "type": "object", "properties": { "deptId": { "description": "更新者", "type": "integer" } } }, "dto.MedicineTemplateInsertReq": { "type": "object", "properties": { "name": { "description": "标签名称", "type": "string" }, "show": { "description": "1-显示 2-隐藏", "type": "integer" }, "sort": { "description": "排序", "type": "integer" }, "text": { "description": "描述", "type": "string" }, "type": { "description": "数据类型", "type": "integer" }, "width": { "description": "宽度", "type": "integer" } } }, "dto.MedicineTemplateUpdateReq": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "description": "标签名称", "type": "string" }, "show": { "description": "1-显示 2-隐藏", "type": "integer" }, "sort": { "description": "排序", "type": "integer" }, "text": { "description": "描述", "type": "string" }, "width": { "description": "宽度", "type": "integer" } } }, "dto.ProductDeleteReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.ProductGetReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.ProductInsertReq": { "type": "object", "properties": { "name": { "description": "品名", "type": "string", "example": "品名" } } }, "dto.ProductPageReq": { "type": "object", "properties": { "name": { "description": "名称", "type": "string", "example": "" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 } } }, "dto.ProductUpdateReq": { "type": "object", "properties": { "id": { "type": "integer", "example": 1 }, "name": { "description": "品名", "type": "string", "example": "品名" } } }, "dto.RoleApiUpdateReq": { "type": "object", "properties": { "apiList": { "description": "api路由列表", "type": "array", "items": { "$ref": "#/definitions/model.BeegoApi" } }, "roleKey": { "description": "服务id", "type": "string", "example": "test" } } }, "dto.SalesOrderPageReq": { "type": "object", "properties": { "batchNumber": { "description": "批号", "type": "string" }, "date": { "description": "下单日期", "type": "string" }, "enterpriseId": { "description": "生产企业id", "type": "integer" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 }, "productId": { "description": "药品名称id", "type": "integer" }, "receivingUnit": { "description": "收货单位", "type": "string" } } }, "dto.SalesPageReq": { "type": "object", "properties": { "batchNumber": { "description": "批号", "type": "string" }, "endDate": { "description": "出库结束时间", "type": "string" }, "enterpriseId": { "description": "生产企业id", "type": "integer" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 }, "productId": { "description": "药品名称id", "type": "integer" }, "receivingUnit": { "description": "收货单位", "type": "string" }, "startDate": { "description": "出库开始时间", "type": "string" } } }, "dto.SalesStockOutExcelReq": { "type": "object", "properties": { "consignee": { "description": "收货人", "type": "string" }, "consigner": { "description": "发货人", "type": "string" }, "date": { "description": "下单日期", "type": "string" }, "drawer": { "description": "开票员", "type": "string" }, "finance": { "description": "财务", "type": "string" }, "receivingUnit": { "description": "收货单位", "type": "string" }, "type": { "type": "string" } } }, "dto.SpecDeleteReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.SpecGetReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.SpecInsertReq": { "type": "object", "properties": { "name": { "description": "规格", "type": "string", "example": "规格" } } }, "dto.SpecPageReq": { "type": "object", "properties": { "name": { "description": "名称", "type": "string", "example": "" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 } } }, "dto.SpecUpdateReq": { "type": "object", "properties": { "id": { "type": "integer", "example": 1 }, "name": { "description": "规格", "type": "string", "example": "规格" } } }, "dto.StockOperatorListReq": { "type": "object", "properties": { "name": { "type": "string" } } }, "dto.StockStatListReq": { "type": "object", "properties": { "batchNumber": { "description": "批号", "type": "string" }, "endDate": { "description": "失效日期结束时间", "type": "string" }, "enterpriseId": { "description": "生产企业id", "type": "integer" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 }, "productId": { "description": "药品名称id", "type": "integer" }, "startDate": { "description": "失效日期开始时间", "type": "string" } } }, "dto.StockTemplateInDeleteReq": { "type": "object", "properties": { "id": { "description": "入库id", "type": "integer" } } }, "dto.StockTemplateInEditReq": { "type": "object", "properties": { "date": { "description": "入库日期", "type": "string" }, "forwarding_unit": { "description": "发货单位", "type": "string" }, "id": { "description": "入库id", "type": "integer" }, "medicineInfo": { "description": "药品信息", "type": "object", "additionalProperties": true }, "operator": { "description": "经办人", "type": "string" }, "quantity": { "description": "数量", "type": "integer" }, "unit_Price": { "description": "购入单价", "type": "number" } } }, "dto.StockTemplateInInsertReq": { "type": "object", "properties": { "date": { "description": "入库日期", "type": "string" }, "forwardingUnit": { "description": "发货单位", "type": "string" }, "medicineInfo": { "description": "药品信息", "type": "object", "additionalProperties": true }, "operator": { "description": "经办人", "type": "string" }, "quantity": { "description": "数量", "type": "integer" }, "unitPrice": { "description": "购入单价", "type": "number" } } }, "dto.StockTemplateInPageReq": { "type": "object", "properties": { "batchNumber": { "description": "批号", "type": "string" }, "endDate": { "description": "入库结束时间", "type": "string" }, "enterpriseId": { "description": "生产企业id", "type": "integer" }, "forwardingUnit": { "description": "发货单位", "type": "string" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 }, "productId": { "description": "药品名称id", "type": "integer" }, "startDate": { "description": "入库开始时间", "type": "string" } } }, "dto.StockTemplateInventoryExcelReq": { "type": "object", "properties": { "batchNumber": { "description": "批号", "type": "string" }, "endDate": { "description": "出/入库结束时间", "type": "string" }, "enterpriseId": { "description": "生产企业id", "type": "integer" }, "productId": { "description": "药品名称id", "type": "integer" }, "specId": { "description": "规格id", "type": "integer" }, "startDate": { "description": "出/入库开始时间", "type": "string" }, "type": { "description": "类型 excel pdf", "type": "string" } } }, "dto.StockTemplateInventoryPageReq": { "type": "object", "properties": { "SendReceiveUnit": { "description": "收发单位", "type": "string" }, "batchNumber": { "description": "批号", "type": "string" }, "endDate": { "description": "出/入库结束时间", "type": "string" }, "enterpriseId": { "description": "生产企业id", "type": "integer" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 }, "productId": { "description": "药品名称id", "type": "integer" }, "startDate": { "description": "出/入库开始时间", "type": "string" } } }, "dto.StockTemplateOutDeleteReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.StockTemplateOutEditReq": { "type": "object", "properties": { "date": { "description": "出库日期", "type": "string" }, "id": { "type": "integer" }, "medicineInfo": { "description": "药品信息", "type": "object", "additionalProperties": true }, "operator": { "description": "经办人", "type": "string" }, "quantity": { "description": "数量", "type": "integer" }, "receiving_unit": { "description": "收货单位", "type": "string" }, "unit_price": { "description": "购入单价", "type": "number" } } }, "dto.StockTemplateOutInsertReq": { "type": "object", "properties": { "date": { "description": "出库日期", "type": "string" }, "medicineInfo": { "description": "药品信息", "type": "object", "additionalProperties": true }, "operator": { "description": "经办人", "type": "string" }, "quantity": { "description": "数量", "type": "integer" }, "receivingUnit": { "description": "收货单位", "type": "string" }, "unitPrice": { "description": "购入单价", "type": "number" } } }, "dto.StockTemplateOutPageReq": { "type": "object", "properties": { "batchNumber": { "description": "批号", "type": "string" }, "endDate": { "description": "出库结束时间", "type": "string" }, "enterpriseId": { "description": "生产企业id", "type": "integer" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 }, "productId": { "description": "药品名称id", "type": "integer" }, "receivingUnit": { "description": "收货单位", "type": "string" }, "startDate": { "description": "出库开始时间", "type": "string" } } }, "dto.StockUnitListReq": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "description": "1-入库 2-出库 3-库存", "type": "integer" } } }, "dto.TransportRecordWordReq": { "type": "object", "properties": { "date": { "description": "出库时间", "type": "string" }, "productId": { "description": "药品名称id", "type": "integer" }, "receivingUnit": { "description": "收货单位", "type": "string" }, "type": { "description": "类型", "type": "string" } } }, "dto.UnitDeleteReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.UnitGetReq": { "type": "object", "properties": { "id": { "type": "integer" } } }, "dto.UnitInsertReq": { "type": "object", "properties": { "name": { "description": "规格", "type": "string", "example": "规格" } } }, "dto.UnitPageReq": { "type": "object", "properties": { "name": { "description": "名称", "type": "string", "example": "" }, "page": { "description": "页数", "type": "integer", "example": 1 }, "pageSize": { "description": "每页条数", "type": "integer", "example": 10 } } }, "dto.UnitUpdateReq": { "type": "object", "properties": { "id": { "type": "integer", "example": 1 }, "name": { "description": "规格", "type": "string", "example": "规格" } } }, "model.BeegoApi": { "type": "object", "properties": { "action": { "description": "请求类型", "type": "string", "example": "Get" }, "name": { "description": "标题", "type": "string", "example": "test" }, "path": { "description": "地址", "type": "string", "example": "/test" }, "serviceId": { "description": "服务ID", "type": "integer", "example": 1 } } }, "models.DosageForm": { "type": "object", "properties": { "createBy": { "description": "创建者", "type": "integer" }, "createdAt": { "description": "创建时间", "type": "string" }, "deptId": { "description": "更新者", "type": "integer" }, "id": { "description": "主键编码", "type": "integer" }, "name": { "description": "剂型名称", "type": "string" }, "updateBy": { "description": "更新者", "type": "integer" }, "updatedAt": { "description": "最后更新时间", "type": "string" } } }, "models.Enterprise": { "type": "object", "properties": { "createBy": { "description": "创建者", "type": "integer" }, "createdAt": { "description": "创建时间", "type": "string" }, "deptId": { "description": "更新者", "type": "integer" }, "id": { "description": "主键编码", "type": "integer" }, "name": { "description": "生产企业名称", "type": "string" }, "updateBy": { "description": "更新者", "type": "integer" }, "updatedAt": { "description": "最后更新时间", "type": "string" } } }, "models.MedicineTemplate": { "type": "object", "properties": { "createBy": { "description": "创建者", "type": "integer" }, "createdAt": { "description": "创建时间", "type": "string" }, "deptId": { "description": "更新者", "type": "integer" }, "field_name": { "description": "英语名称", "type": "string" }, "id": { "description": "主键编码", "type": "integer" }, "name": { "description": "标签名称", "type": "string" }, "show": { "description": "1-显示 2-隐藏", "type": "integer" }, "sort": { "description": "排序", "type": "integer" }, "state": { "description": "1-系统初始化 2-用户添加", "type": "integer" }, "text": { "description": "描述", "type": "string" }, "type": { "description": "数据类型", "type": "integer" }, "updateBy": { "description": "更新者", "type": "integer" }, "updatedAt": { "description": "最后更新时间", "type": "string" }, "width": { "description": "宽度", "type": "integer" } } }, "models.Product": { "type": "object", "properties": { "createBy": { "description": "创建者", "type": "integer" }, "createdAt": { "description": "创建时间", "type": "string" }, "deptId": { "description": "更新者", "type": "integer" }, "id": { "description": "主键编码", "type": "integer" }, "name": { "description": "产品名称", "type": "string" }, "updateBy": { "description": "更新者", "type": "integer" }, "updatedAt": { "description": "最后更新时间", "type": "string" } } }, "models.Spec": { "type": "object", "properties": { "createBy": { "description": "创建者", "type": "integer" }, "createdAt": { "description": "创建时间", "type": "string" }, "deptId": { "description": "更新者", "type": "integer" }, "id": { "description": "主键编码", "type": "integer" }, "name": { "description": "规格名称", "type": "string" }, "updateBy": { "description": "更新者", "type": "integer" }, "updatedAt": { "description": "最后更新时间", "type": "string" } } }, "models.Unit": { "type": "object", "properties": { "createBy": { "description": "创建者", "type": "integer" }, "createdAt": { "description": "创建时间", "type": "string" }, "deptId": { "description": "更新者", "type": "integer" }, "id": { "description": "主键编码", "type": "integer" }, "name": { "description": "单位名称", "type": "string" }, "updateBy": { "description": "更新者", "type": "integer" }, "updatedAt": { "description": "最后更新时间", "type": "string" } } }, "response.Data": { "type": "object", "properties": { "count": { "description": "总数", "type": "integer" }, "list": {}, "page": { "description": "页码", "type": "integer" }, "pageSize": { "description": "页条数", "type": "integer" } } }, "response.Page": { "type": "object", "properties": { "code": { "type": "integer" }, "data": { "$ref": "#/definitions/response.Data" }, "msg": { "type": "string" }, "requestId": { "type": "string" }, "status": { "type": "string" } } }, "response.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" }, "requestId": { "type": "string" }, "status": { "type": "string" } } } }, "securityDefinitions": { "Bearer": { "type": "apiKey", "name": "Authorization", "in": "header" } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "1.0", Host: "192.168.11.77:8110", BasePath: "/api", Schemes: []string{"http"}, Title: "药品进销存管理系统", Description: "药品进销存管理系统", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }