zhangqian
2023-11-01 530fed8ec225453572d57b15c200ab062c335457
docs/docs.go
@@ -1199,6 +1199,36 @@
                }
            }
        },
        "/api/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": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
            }
        },
        "/api/code/getCodeList": {
            "get": {
                "produces": [
@@ -5676,6 +5706,142 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateRefundMethods"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/refundType/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "退款方式管理"
                ],
                "summary": "添加退款方式",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddRefundType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/refundType/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "退款方式管理"
                ],
                "summary": "删除退款方式",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/refundType/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "退款方式管理"
                ],
                "summary": "获取退款方式列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.RefundType"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/refundType/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "退款方式管理"
                ],
                "summary": "更新退款方式",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateRefundType"
                        }
                    }
                ],
@@ -10984,6 +11150,9 @@
                "quotationId": {
                    "type": "integer"
                },
                "sendTime": {
                    "type": "string"
                },
                "serviceContractStatus": {
                    "$ref": "#/definitions/model.ServiceContractStatus"
                },
@@ -11185,6 +11354,9 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "codeStandID": {
                    "type": "string"
                },
                "courierCompany": {
                    "$ref": "#/definitions/model.CourierCompany"
                },
@@ -11220,6 +11392,9 @@
                "invoiceTypeId": {
                    "description": "发票类型id",
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "principalId": {
                    "description": "销售负责人id",
@@ -11699,6 +11874,17 @@
                }
            }
        },
        "model.RefundType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Region": {
            "type": "object",
            "properties": {
@@ -11901,6 +12087,14 @@
                "solutions": {
                    "type": "string"
                },
                "status": {
                    "description": "状态",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Status"
                        }
                    ]
                },
                "status_id": {
                    "type": "integer"
                },
@@ -11987,6 +12181,9 @@
                "creatorName": {
                    "type": "string"
                },
                "deliverType": {
                    "type": "integer"
                },
                "deliveryDate": {
                    "type": "string"
                },
@@ -12016,6 +12213,12 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "quotation": {
                    "$ref": "#/definitions/model.Quotation"
                },
                "quotationId": {
                    "type": "integer"
                },
                "remark": {
                    "type": "string"
@@ -12126,8 +12329,13 @@
        "model.SalesRefund": {
            "type": "object",
            "properties": {
                "Source": {
                    "$ref": "#/definitions/model.SalesReturn"
                "RefundType": {
                    "description": "退款方式",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.RefundType"
                        }
                    ]
                },
                "amountTotal": {
                    "description": "价税合计",
@@ -12188,6 +12396,13 @@
                },
                "refundDate": {
                    "type": "string"
                },
                "refundTypeId": {
                    "description": "退款方式ID",
                    "type": "integer"
                },
                "salesReturn": {
                    "$ref": "#/definitions/model.SalesReturn"
                },
                "sourceId": {
                    "description": "源单id",
@@ -12807,6 +13022,10 @@
                "severity": {
                    "$ref": "#/definitions/model.Severity"
                },
                "severityId": {
                    "description": "严重程度id",
                    "type": "integer"
                },
                "solution": {
                    "description": "解决方法",
                    "type": "string"
@@ -13137,9 +13356,6 @@
                    "description": "客户类型ID",
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -13344,9 +13560,6 @@
                "client_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -13366,6 +13579,10 @@
                },
                "quotation_id": {
                    "type": "integer"
                },
                "sendTime": {
                    "description": "发货时间",
                    "type": "string"
                },
                "status_id": {
                    "type": "integer"
@@ -13507,6 +13724,9 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "codeStandID": {
                    "type": "string"
                },
                "courierCompanyId": {
                    "description": "物流公司",
                    "type": "integer"
@@ -13530,6 +13750,10 @@
                "invoiceTypeId": {
                    "description": "发票类型id",
                    "type": "integer"
                },
                "number": {
                    "description": "发票编号",
                    "type": "string"
                },
                "principalId": {
                    "description": "销售负责人id",
@@ -13613,9 +13837,6 @@
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -13736,9 +13957,6 @@
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -13892,6 +14110,17 @@
                }
            }
        },
        "request.AddRefundType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddRegion": {
            "type": "object",
            "properties": {
@@ -13962,9 +14191,6 @@
                },
                "client_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -14096,15 +14322,16 @@
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
                },
                "conditions": {
                    "type": "string"
                },
                "deliverType": {
                    "description": "交付类型:1.一次发货,2.多次发货",
                    "type": "integer"
                },
                "deliveryDate": {
                    "type": "string"
@@ -14133,6 +14360,9 @@
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "quotationId": {
                    "type": "integer"
                },
                "remark": {
                    "type": "string"
                },
@@ -14155,9 +14385,6 @@
            "properties": {
                "city_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -14282,9 +14509,6 @@
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -14393,9 +14617,6 @@
                    "description": "客户类型ID",
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -14490,9 +14711,6 @@
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -14557,9 +14775,6 @@
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -14633,7 +14848,7 @@
                    "description": "服务方式id",
                    "type": "integer"
                },
                "severity": {
                "severityId": {
                    "description": "严重程度id",
                    "type": "integer"
                },
@@ -14715,9 +14930,6 @@
            "properties": {
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -15095,9 +15307,6 @@
                },
                "client_status_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "type": "string"
@@ -15676,15 +15885,16 @@
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
                },
                "conditions": {
                    "type": "string"
                },
                "deliverType": {
                    "description": "交付类型:1.一次发货,2.多次发货",
                    "type": "integer"
                },
                "deliveryDate": {
                    "type": "string"
@@ -15712,6 +15922,9 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "quotationId": {
                    "type": "integer"
                },
                "remark": {
                    "type": "string"
@@ -15743,9 +15956,6 @@
                },
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -15795,9 +16005,6 @@
            "properties": {
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -15997,9 +16204,6 @@
                "client_type_id": {
                    "description": "客户类型ID",
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -16290,9 +16494,6 @@
                "client_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -16315,6 +16516,10 @@
                },
                "quotation_id": {
                    "type": "integer"
                },
                "sendTime": {
                    "description": "发货时间",
                    "type": "string"
                },
                "status_id": {
                    "type": "integer"
@@ -16553,6 +16758,9 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "codeStandID": {
                    "type": "string"
                },
                "courierCompanyId": {
                    "description": "物流公司",
                    "type": "integer"
@@ -16579,6 +16787,10 @@
                "invoiceTypeId": {
                    "description": "发票类型id",
                    "type": "integer"
                },
                "number": {
                    "description": "发票编号",
                    "type": "string"
                },
                "principalId": {
                    "description": "销售负责人id",
@@ -16694,9 +16906,6 @@
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -16878,9 +17087,6 @@
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -17073,6 +17279,17 @@
                }
            }
        },
        "request.UpdateRefundType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateRegion": {
            "type": "object",
            "properties": {
@@ -17231,9 +17448,6 @@
                },
                "client_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -17408,9 +17622,6 @@
            "properties": {
                "city_id": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -17665,9 +17876,6 @@
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -17797,9 +18005,6 @@
                    "description": "客户类型ID",
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -17895,9 +18100,6 @@
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
                    "type": "string"
@@ -17965,9 +18167,6 @@
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",
@@ -18044,7 +18243,7 @@
                    "description": "服务方式id",
                    "type": "integer"
                },
                "severity": {
                "severityId": {
                    "description": "严重程度id",
                    "type": "integer"
                },
@@ -18162,9 +18361,6 @@
            "properties": {
                "clientId": {
                    "type": "integer"
                },
                "codeRule": {
                    "$ref": "#/definitions/code.CodeStandard"
                },
                "codeStandID": {
                    "description": "编码id",