selfcheer
2024-07-19 1572f45e72cc0fa15c029f9ee2a08474104435e6
docs/docs.go
@@ -16,6 +16,112 @@
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
        "/code/getAutoCode": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "编码"
                ],
                "summary": "获取自动编码",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/code.CodeStandard"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/code/getCodeList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "编码"
                ],
                "summary": "获取编码列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "codeStandID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "name",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "type",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/code.CodeStandard"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/con/createContract": {
            "post": {
                "security": [
@@ -128,61 +234,6 @@
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/con/downloadContract": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "下载Contract",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "fileName",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"下载成功\"}",
                        "schema": {
                            "type": "string"
                        }
@@ -328,61 +379,6 @@
                }
            }
        },
        "/con/previewContract": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "预览Contract",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "fileName",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"预览成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/con/updateContract": {
            "put": {
                "security": [
@@ -414,6 +410,150 @@
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/dict/getMiniDictList": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "数据字典"
                ],
                "summary": "获取迷你字典列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/v1.GetMiniDictList"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/utils.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.MiniDict"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/dict/saveMiniDict": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "数据字典"
                ],
                "summary": "更新迷你字典",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/v1.SaveMiniDict"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/utils.Response"
                        }
                    }
                }
            }
        },
        "/downloadContract": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "下载Contract",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "fileName",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"下载成功\"}",
                        "schema": {
                            "type": "string"
                        }
@@ -1089,6 +1229,201 @@
                }
            }
        },
        "/outsourcing/enterprise/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "委外企业管理"
                ],
                "summary": "企业新增",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterprise"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/outsourcing/enterprise/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "委外企业管理"
                ],
                "summary": "企业列表",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            0,
                            1,
                            2
                        ],
                        "type": "integer",
                        "x-enum-comments": {
                            "RecordStatusActive": "启用",
                            "RecordStatusCreate": "新建",
                            "RecordStatusInactive": "停用"
                        },
                        "x-enum-varnames": [
                            "RecordStatusCreate",
                            "RecordStatusActive",
                            "RecordStatusInactive"
                        ],
                        "description": "状态 0 新建 1 启用 2停用",
                        "name": "status",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/utils.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.OutsourcingEnterprise"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/outsourcing/enterprise/overview": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "委外企业管理"
                ],
                "summary": "企业统计",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/utils.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterpriseOverview"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/outsourcing/enterprise/update": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "委外企业管理"
                ],
                "summary": "企业修改",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterprise"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/p/createProduct": {
            "post": {
                "security": [
@@ -1151,7 +1486,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetById"
                            "$ref": "#/definitions/srm_model_common_request.GetById"
                        }
                    }
                ],
@@ -1338,6 +1673,13 @@
                        "type": "string",
                        "name": "unit",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
@@ -1495,6 +1837,337 @@
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/previewContract": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "预览Contract",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "fileName",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"预览成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/purchase/allProductInWarehouse": {
            "post": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "全部合格入库",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.PurchaseProductConfirmInfo"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "获取确认信息",
                        "schema": {
                            "$ref": "#/definitions/response.Response"
                        }
                    }
                }
            }
        },
        "/purchase/getOperationInfo/{id}": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "获取操作信息",
                "responses": {
                    "200": {
                        "description": "获取操作信息",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/response.OperationInfo"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/purchase/getPurchaseProductConfirmInfo/{number}": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "获取确认信息",
                "parameters": [
                    {
                        "type": "string",
                        "description": "采购单编码",
                        "name": "number",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "获取确认信息",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/purchase.PurchaseProductConfirm"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/purchase/getPurchaseQualityInspectionInfo": {
            "post": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "获取采购质检信息信息",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.GetQualityInspectionInfo"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "获取确认信息",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/purchase.PurchaseProductConfirm"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/purchase/getWarehouseInfo": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "获取仓库列表",
                "responses": {
                    "200": {
                        "description": "获取采购类型列表",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/purchase/newSubmit": {
            "post": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "新版提交",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.SubmitPurchase"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "新版提交",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "msg": {
                                            "type": "string"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
@@ -1730,6 +2403,12 @@
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "供应商id",
                        "name": "supplierId",
                        "in": "query"
                    }
                ],
                "responses": {
@@ -1890,6 +2569,12 @@
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "供应商id",
                        "name": "supplierId",
                        "in": "query"
                    }
                ],
                "responses": {
@@ -1917,7 +2602,113 @@
                }
            }
        },
        "/purchase/submit/{id}": {
        "/purchase/savePurchaseProductConfirm": {
            "post": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "确认收货",
                "parameters": [
                    {
                        "description": "list",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/purchaserequest.PurchaseProductConfirmInfo"
                            }
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "确认收货",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "msg": {
                                            "type": "string"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/purchase/savePurchaseQualityInspectionInfo": {
            "post": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "保存采购质检信息信息",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.SaveQualityInspectionInfo"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "获取确认信息",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/purchase.PurchaseProductConfirm"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/purchase/submit": {
            "post": {
                "security": [
                    {
@@ -1936,11 +2727,13 @@
                "summary": "提交采购单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "采购单ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.SubmitPurchase"
                        }
                    }
                ],
                "responses": {
@@ -2176,7 +2969,8 @@
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "type": "string",
                        "example": "0",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
@@ -2225,6 +3019,42 @@
                        "type": "string",
                        "name": "url",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/s/getSupplierByNumber/{number}": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Supplier"
                ],
                "summary": "用编码查询Supplier",
                "parameters": [
                    {
                        "type": "string",
                        "description": "供应商编码",
                        "name": "number",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
@@ -2301,7 +3131,8 @@
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "type": "string",
                        "example": "0",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
@@ -2867,6 +3698,69 @@
        }
    },
    "definitions": {
        "code.CodeAuto": {
            "type": "object",
            "properties": {
                "AutoLength": {
                    "type": "integer"
                },
                "Desc": {
                    "type": "string"
                },
                "PrefixMethod": {
                    "type": "integer"
                },
                "PrefixValue": {
                    "type": "string"
                },
                "SuffixMethod": {
                    "type": "integer"
                }
            }
        },
        "code.CodeRule": {
            "type": "object",
            "properties": {
                "Desc": {
                    "type": "string"
                },
                "Length": {
                    "type": "integer"
                },
                "Name": {
                    "type": "string"
                }
            }
        },
        "code.CodeStandard": {
            "type": "object",
            "properties": {
                "AutoRule": {
                    "$ref": "#/definitions/code.CodeAuto"
                },
                "ID": {
                    "type": "string"
                },
                "List": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/code.CodeRule"
                    }
                },
                "Method": {
                    "type": "integer"
                },
                "Name": {
                    "type": "string"
                },
                "Status": {
                    "type": "string"
                },
                "Type": {
                    "type": "string"
                }
            }
        },
        "config.CORS": {
            "type": "object",
            "properties": {
@@ -3306,33 +4200,23 @@
                    "type": "string"
                },
                "grpc-admin-url": {
                    "description": "grpc服务地址",
                    "description": "admin grpc服务地址",
                    "type": "string"
                },
                "grpc-port": {
                    "description": "对外提供服务grpc端口",
                    "type": "string"
                },
                "grpc-url": {
                    "description": "grpc服务地址",
                    "description": "aps grpc服务地址",
                    "type": "string"
                },
                "iplimit-count": {
                    "type": "integer"
                },
                "iplimit-time": {
                    "type": "integer"
                },
                "oss-type": {
                    "description": "Oss类型",
                "grpc-wms-url": {
                    "description": "wms grpc服务地址",
                    "type": "string"
                },
                "router-prefix": {
                    "type": "string"
                },
                "use-multipoint": {
                    "description": "多点登录拦截",
                    "type": "boolean"
                },
                "use-redis": {
                    "description": "使用redis",
                    "type": "boolean"
                }
            }
        },
@@ -3377,25 +4261,278 @@
                }
            }
        },
        "constvar.MiniDictType": {
            "type": "integer",
            "enum": [
                1,
                2,
                3,
                4,
                5,
                6,
                7
            ],
            "x-enum-comments": {
                "EarlyWarningDay": "预警天数",
                "InspectionWayType": "质检方式类型",
                "MiniDictTypeBomVersionType": "Bom版本类型",
                "MiniDictTypePlcBrand": "PLC品牌",
                "OutsourcingSupplierCreditGrade": "信用等级",
                "OutsourcingSupplierRange": "供货范围",
                "OutsourcingSupplierType": "委外供应商类型"
            },
            "x-enum-varnames": [
                "MiniDictTypePlcBrand",
                "MiniDictTypeBomVersionType",
                "EarlyWarningDay",
                "InspectionWayType",
                "OutsourcingSupplierType",
                "OutsourcingSupplierCreditGrade",
                "OutsourcingSupplierRange"
            ]
        },
        "constvar.RecordStatus": {
            "type": "integer",
            "enum": [
                0,
                1,
                2
            ],
            "x-enum-comments": {
                "RecordStatusActive": "启用",
                "RecordStatusCreate": "新建",
                "RecordStatusInactive": "停用"
            },
            "x-enum-varnames": [
                "RecordStatusCreate",
                "RecordStatusActive",
                "RecordStatusInactive"
            ]
        },
        "contextx.Response": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "gorm.DeletedAt": {
            "type": "object",
            "properties": {
                "time": {
                    "type": "string"
                },
                "valid": {
                    "description": "Valid is true if Time is not NULL",
                    "type": "boolean"
                }
            }
        },
        "model.MiniDict": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "isDefault": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                },
                "type": {
                    "$ref": "#/definitions/constvar.MiniDictType"
                },
                "updatedAt": {
                    "type": "string"
                },
                "value": {
                    "type": "string"
                }
            }
        },
        "models.OutsourcingEnterprise": {
            "type": "object",
            "properties": {
                "address": {
                    "description": "地址",
                    "type": "string"
                },
                "contact": {
                    "description": "联系人",
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "creditGrade": {
                    "description": "信用等级",
                    "type": "string"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "enterpriseType": {
                    "description": "企业类型",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "委外企业编号名称",
                    "type": "string"
                },
                "number": {
                    "description": "委外企业编号",
                    "type": "string"
                },
                "organizationCode": {
                    "description": "组织机构代码",
                    "type": "string"
                },
                "status": {
                    "description": "状态 0 新建 1 启用 2停用",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RecordStatus"
                        }
                    ]
                },
                "supplyCapacity": {
                    "description": "供货能力",
                    "type": "string"
                },
                "supplyRange": {
                    "description": "供货范围",
                    "type": "string"
                },
                "tel": {
                    "description": "联系方式",
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "outsourcingrequest.OutsourcingEnterprise": {
            "type": "object",
            "required": [
                "enterpriseType",
                "name",
                "number"
            ],
            "properties": {
                "address": {
                    "description": "地址",
                    "type": "string"
                },
                "contact": {
                    "description": "联系人",
                    "type": "string"
                },
                "creditGrade": {
                    "description": "信用等级",
                    "type": "string"
                },
                "enterpriseType": {
                    "description": "企业类型",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "委外供应商编号名称",
                    "type": "string"
                },
                "number": {
                    "description": "委外供应商编号",
                    "type": "string"
                },
                "organizationCode": {
                    "description": "组织机构代码",
                    "type": "string"
                },
                "status": {
                    "description": "状态 0 新建 1 启用 2停用",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RecordStatus"
                        }
                    ]
                },
                "supplyCapacity": {
                    "description": "供货能力",
                    "type": "string"
                },
                "supplyRange": {
                    "description": "供货范围",
                    "type": "string"
                },
                "tel": {
                    "description": "联系方式",
                    "type": "string"
                }
            }
        },
        "outsourcingrequest.OutsourcingEnterpriseOverview": {
            "type": "object",
            "properties": {
                "close": {
                    "description": "停用数量",
                    "type": "integer"
                },
                "open": {
                    "description": "启用数量",
                    "type": "integer"
                },
                "total": {
                    "description": "总量",
                    "type": "integer"
                }
            }
        },
        "purchase.OrderStatus": {
            "type": "integer",
            "enum": [
                1,
                2,
                3,
                4
                4,
                5,
                6,
                7,
                8
            ],
            "x-enum-comments": {
                "OrderStatusCanceled": "已取消",
                "OrderStatusCompleted": "已完成",
                "OrderStatusConfirmed": "已下单",
                "OrderStatusReceived": "已到货",
                "OrderStatusStored": "已入库"
                "OrderStatusConfirmed": "待确认",
                "OrderStatusPartReceive": "部分收货",
                "OrderStatusReceived": "待入库",
                "OrderStatusStored": "已入库",
                "OrderStatusWaitQuality": "待质检",
                "OrderStatusWaitReceive": "待收货"
            },
            "x-enum-varnames": [
                "OrderStatusConfirmed",
                "OrderStatusReceived",
                "OrderStatusStored",
                "OrderStatusCompleted"
                "OrderStatusCompleted",
                "OrderStatusCanceled",
                "OrderStatusWaitReceive",
                "OrderStatusPartReceive",
                "OrderStatusWaitQuality"
            ]
        },
        "purchase.PriceAdjustmentType": {
@@ -3437,7 +4574,8 @@
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "invoiceAmount": {
                    "description": "已收票金额",
@@ -3480,7 +4618,7 @@
                    ]
                },
                "principal": {
                    "description": "采购负责人",
                    "description": "仓库负责人",
                    "type": "string"
                },
                "purchaseType": {
@@ -3488,7 +4626,8 @@
                },
                "purchaseTypeId": {
                    "description": "采购类型id",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "quantity": {
                    "description": "采购数量",
@@ -3510,6 +4649,10 @@
                    "description": "签约日期",
                    "type": "string"
                },
                "sourceOrder": {
                    "description": "来源单据 ,销售明细编码",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
                    "allOf": [
@@ -3523,7 +4666,8 @@
                },
                "supplierId": {
                    "description": "供应商id",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "totalPrice": {
                    "description": "价税合计",
@@ -3540,6 +4684,10 @@
                    "description": "收货仓库",
                    "type": "string"
                },
                "warehouseAddress": {
                    "description": "收货仓库地址",
                    "type": "string"
                },
                "wholeDiscount": {
                    "description": "整单折扣值",
                    "type": "number"
@@ -3551,6 +4699,59 @@
                            "$ref": "#/definitions/purchase.WholeDiscountType"
                        }
                    ]
                }
            }
        },
        "purchase.PurchaseProductConfirm": {
            "type": "object",
            "properties": {
                "amount": {
                    "type": "number"
                },
                "created_at": {
                    "type": "string"
                },
                "id": {
                    "description": "主键ID",
                    "type": "string",
                    "example": "0"
                },
                "notReceiveAmount": {
                    "type": "number"
                },
                "nowReceiveAmount": {
                    "description": "本次收货数量",
                    "type": "number"
                },
                "overReceiveAmount": {
                    "type": "number"
                },
                "principal": {
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
                "productName": {
                    "type": "string"
                },
                "purchaseNumber": {
                    "type": "string"
                },
                "specs": {
                    "type": "string"
                },
                "surplusReceiveAmount": {
                    "type": "number"
                },
                "type": {
                    "type": "string"
                },
                "unit": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                }
            }
        },
@@ -3574,7 +4775,7 @@
                },
                "productId": {
                    "description": "产品id",
                    "type": "string"
                    "type": "integer"
                },
                "purchaseId": {
                    "description": "采购id",
@@ -3601,7 +4802,8 @@
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "name": {
                    "description": "采购类型",
@@ -3635,6 +4837,34 @@
                "WholeDiscountTypeDiscount"
            ]
        },
        "purchase_wms.SrmGetWarehouseInfoResponse": {
            "type": "object",
            "properties": {
                "info": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/purchase_wms.SrmWarehouseInfo"
                    }
                }
            }
        },
        "purchase_wms.SrmWarehouseInfo": {
            "type": "object",
            "properties": {
                "address": {
                    "description": "仓库地址",
                    "type": "string"
                },
                "name": {
                    "description": "仓库名",
                    "type": "string"
                },
                "principal": {
                    "description": "仓库负责人",
                    "type": "string"
                }
            }
        },
        "purchaserequest.AddPurchase": {
            "type": "object",
            "properties": {
@@ -3646,6 +4876,26 @@
                },
                "purchase": {
                    "$ref": "#/definitions/purchaserequest.Purchase"
                }
            }
        },
        "purchaserequest.GetQualityInspectionInfo": {
            "type": "object",
            "properties": {
                "purchaseNumber": {
                    "type": "string"
                },
                "status": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "times": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
@@ -3662,7 +4912,8 @@
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "name": {
                    "description": "采购名称",
@@ -3670,6 +4921,10 @@
                },
                "number": {
                    "description": "采购编号",
                    "type": "string"
                },
                "orderSource": {
                    "description": "单据来源",
                    "type": "string"
                },
                "phone": {
@@ -3688,9 +4943,14 @@
                        }
                    ]
                },
                "principal": {
                    "description": "仓库负责人",
                    "type": "string"
                },
                "purchaseTypeId": {
                    "description": "采购类型id",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "quantity": {
                    "description": "采购数量",
@@ -3708,6 +4968,10 @@
                    "description": "签约日期",
                    "type": "string"
                },
                "sourceOrder": {
                    "description": "来源单据",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
                    "allOf": [
@@ -3718,11 +4982,20 @@
                },
                "supplierId": {
                    "description": "供应商id",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "totalPrice": {
                    "description": "价税合计",
                    "type": "number"
                },
                "warehouse": {
                    "description": "收货仓库",
                    "type": "string"
                },
                "warehouseAddress": {
                    "description": "收货仓库地址",
                    "type": "string"
                },
                "wholeDiscount": {
                    "description": "整单折扣值",
@@ -3738,12 +5011,54 @@
                }
            }
        },
        "purchaserequest.PurchaseProductConfirmInfo": {
            "type": "object",
            "properties": {
                "amount": {
                    "type": "number"
                },
                "notReceiveAmount": {
                    "type": "number"
                },
                "nowReceiveAmount": {
                    "type": "number"
                },
                "overReceiveAmount": {
                    "type": "number"
                },
                "principal": {
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
                "productName": {
                    "type": "string"
                },
                "purchaseNumber": {
                    "type": "string"
                },
                "specs": {
                    "type": "string"
                },
                "surplusReceiveAmount": {
                    "type": "number"
                },
                "type": {
                    "type": "string"
                },
                "unit": {
                    "type": "string"
                }
            }
        },
        "purchaserequest.PurchaseType": {
            "type": "object",
            "properties": {
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "name": {
                    "description": "采购类型",
@@ -3759,6 +5074,34 @@
                }
            }
        },
        "purchaserequest.SaveQualityInspectionInfo": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "purchaseId": {
                    "type": "integer"
                },
                "status": {
                    "type": "integer"
                }
            }
        },
        "purchaserequest.SubmitPurchase": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "status": {
                    "$ref": "#/definitions/purchase.OrderStatus"
                }
            }
        },
        "purchaserequest.UpdatePurchase": {
            "type": "object",
            "properties": {
@@ -3770,15 +5113,6 @@
                },
                "purchase": {
                    "$ref": "#/definitions/purchaserequest.Purchase"
                }
            }
        },
        "request.GetById": {
            "type": "object",
            "properties": {
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                }
            }
        },
@@ -3881,6 +5215,59 @@
                }
            }
        },
        "response.InWarehouseInfo": {
            "type": "object",
            "properties": {
                "name": {
                    "description": "产品名称",
                    "type": "string"
                },
                "number": {
                    "description": "产品编码",
                    "type": "string"
                },
                "operationNumber": {
                    "description": "入库单号",
                    "type": "string"
                },
                "overAmount": {
                    "description": "入库数",
                    "type": "integer"
                },
                "overTime": {
                    "description": "入库时间",
                    "type": "string"
                },
                "principal": {
                    "description": "负责人",
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "warehouseName": {
                    "description": "仓库名",
                    "type": "string"
                }
            }
        },
        "response.OperationInfo": {
            "type": "object",
            "properties": {
                "inWarehouseInfos": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.InWarehouseInfo"
                    }
                },
                "productInfos": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.ProductInfo"
                    }
                }
            }
        },
        "response.PageResult": {
            "type": "object",
            "properties": {
@@ -3893,6 +5280,51 @@
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "response.ProductInfo": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "采购数",
                    "type": "number"
                },
                "modelNumber": {
                    "description": "型号",
                    "type": "string"
                },
                "name": {
                    "description": "产品名称",
                    "type": "string"
                },
                "number": {
                    "description": "产品编码",
                    "type": "string"
                },
                "overAmount": {
                    "description": "入库数",
                    "type": "integer"
                },
                "purchasePrice": {
                    "description": "单价",
                    "type": "number"
                },
                "sendAmount": {
                    "description": "收货数",
                    "type": "integer"
                },
                "specifications": {
                    "description": "规格",
                    "type": "string"
                },
                "total": {
                    "description": "总价",
                    "type": "number"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                }
            }
        },
@@ -3933,6 +5365,10 @@
                "purchasePrice": {
                    "type": "number"
                },
                "remark": {
                    "description": "描述",
                    "type": "string"
                },
                "shippingDuration": {
                    "type": "integer"
                },
@@ -3971,6 +5407,15 @@
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "srm_model_common_request.GetById": {
            "type": "object",
            "properties": {
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                }
            }
        },
@@ -4077,7 +5522,8 @@
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "industry": {
                    "type": "string"
@@ -4182,6 +5628,75 @@
                    "type": "string"
                }
            }
        },
        "utils.Response": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "utils.ResponseList": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
                },
                "page": {
                    "type": "integer"
                },
                "pageSize": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "v1.GetMiniDictList": {
            "type": "object",
            "properties": {
                "type": {
                    "$ref": "#/definitions/constvar.MiniDictType"
                }
            }
        },
        "v1.MiniDict": {
            "type": "object",
            "properties": {
                "isDefault": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                },
                "value": {
                    "type": "string"
                }
            }
        },
        "v1.SaveMiniDict": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/v1.MiniDict"
                    }
                },
                "type": {
                    "$ref": "#/definitions/constvar.MiniDictType"
                }
            }
        }
    },
    "securityDefinitions": {