add
wangpengfei
2023-07-12 6bb983c0766c26583493a956f255f87c742db59e
docs/docs.go
@@ -3056,6 +3056,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": [
@@ -4672,6 +4791,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": {
@@ -5317,6 +5474,14 @@
                }
            }
        },
        "request.AddSalesRefundRequest": {
            "type": "object",
            "properties": {
                "salesRefund": {
                    "$ref": "#/definitions/request.SalesRefund"
                }
            }
        },
        "request.AddSalesReturnRequest": {
            "type": "object",
            "properties": {
@@ -5642,6 +5807,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"
                }
            }
        },
@@ -6582,6 +6782,17 @@
                }
            }
        },
        "request.UpdateSalesRefundRequest": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "salesRefund": {
                    "$ref": "#/definitions/request.SalesRefund"
                }
            }
        },
        "request.UpdateSalesReturnRequest": {
            "type": "object",
            "properties": {
@@ -6980,6 +7191,17 @@
                }
            }
        },
        "response.SalesRefundResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SalesRefund"
                    }
                }
            }
        },
        "response.SalesSourceResponse": {
            "type": "object",
            "properties": {