add
wangpengfei
2023-07-12 e5f77f930e63a517754ab49bfc0c2bd6df0175e7
docs/docs.go
@@ -952,6 +952,125 @@
                }
            }
        },
        "/api/contract/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "添加合同",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddContract"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/contract/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "删除合同",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/contract/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "获取合同列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.ContractResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/contract/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "更新合同",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateContract"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/country/add": {
            "post": {
                "produces": [
@@ -3056,6 +3175,125 @@
                }
            }
        },
        "/api/salesRefund/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                ],
                "summary": "添加销售退款",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddSalesRefundRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/salesRefund/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                ],
                "summary": "删除销售退款",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/salesRefund/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                ],
                "summary": "销售退款列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.SalesRefundResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/salesRefund/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                ],
                "summary": "更新销售退款",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateSalesRefundRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/salesReturn/add": {
            "post": {
                "produces": [
@@ -4153,6 +4391,32 @@
                }
            }
        },
        "model.Contract": {
            "type": "object",
            "properties": {
                "clientId": {
                    "type": "integer"
                },
                "file": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "memberId": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "quotationId": {
                    "type": "integer"
                },
                "statusId": {
                    "type": "integer"
                }
            }
        },
        "model.Country": {
            "type": "object",
            "properties": {
@@ -4672,6 +4936,44 @@
                }
            }
        },
        "model.SalesRefund": {
            "type": "object",
            "properties": {
                "accountId": {
                    "type": "integer"
                },
                "clientId": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "isInvoice": {
                    "type": "integer"
                },
                "memberId": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "reason": {
                    "type": "string"
                },
                "refundDate": {
                    "type": "string"
                },
                "refundMethod": {
                    "type": "string"
                }
            }
        },
        "model.SalesSources": {
            "type": "object",
            "properties": {
@@ -4978,6 +5280,29 @@
                "wechat": {
                    "description": "微信号",
                    "type": "string"
                }
            }
        },
        "request.AddContract": {
            "type": "object",
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "file": {
                    "type": "string"
                },
                "member_id": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "quotation_id": {
                    "type": "integer"
                },
                "status_id": {
                    "type": "integer"
                }
            }
        },
@@ -5317,6 +5642,14 @@
                }
            }
        },
        "request.AddSalesRefundRequest": {
            "type": "object",
            "properties": {
                "salesRefund": {
                    "$ref": "#/definitions/request.SalesRefund"
                }
            }
        },
        "request.AddSalesReturnRequest": {
            "type": "object",
            "properties": {
@@ -5642,6 +5975,41 @@
                },
                "wechatOrderStatus": {
                    "type": "integer"
                }
            }
        },
        "request.SalesRefund": {
            "type": "object",
            "properties": {
                "accountId": {
                    "type": "integer"
                },
                "clientId": {
                    "type": "integer"
                },
                "isInvoice": {
                    "type": "integer"
                },
                "memberId": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "reason": {
                    "type": "string"
                },
                "refundDate": {
                    "type": "string"
                },
                "refundMethod": {
                    "type": "string"
                }
            }
        },
@@ -6051,6 +6419,32 @@
                "wechat": {
                    "description": "微信号",
                    "type": "string"
                }
            }
        },
        "request.UpdateContract": {
            "type": "object",
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "file": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "member_id": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "quotation_id": {
                    "type": "integer"
                },
                "status_id": {
                    "type": "integer"
                }
            }
        },
@@ -6582,6 +6976,17 @@
                }
            }
        },
        "request.UpdateSalesRefundRequest": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "salesRefund": {
                    "$ref": "#/definitions/request.SalesRefund"
                }
            }
        },
        "request.UpdateSalesReturnRequest": {
            "type": "object",
            "properties": {
@@ -6771,6 +7176,17 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ContactDetail"
                    }
                }
            }
        },
        "response.ContractResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Contract"
                    }
                }
            }
@@ -6980,6 +7396,17 @@
                }
            }
        },
        "response.SalesRefundResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SalesRefund"
                    }
                }
            }
        },
        "response.SalesSourceResponse": {
            "type": "object",
            "properties": {