add
wangpengfei
2023-07-07 9cd9b44d7727437add866faf74ed7785ecb1d6e8
docs/docs.go
@@ -1985,6 +1985,125 @@
                }
            }
        },
        "/api/regularCustomers/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RegularCustomers"
                ],
                "summary": "添加常客",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddRegularCustomers"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/regularCustomers/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RegularCustomers"
                ],
                "summary": "删除常客",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/regularCustomers/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RegularCustomers"
                ],
                "summary": "常客列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.RegularCustomersResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/regularCustomers/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RegularCustomers"
                ],
                "summary": "更新常客",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateRegularCustomersList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/saleChance/add": {
            "post": {
                "produces": [
@@ -3364,6 +3483,17 @@
                }
            }
        },
        "model.RegularCustomers": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.SaleChance": {
            "type": "object",
            "properties": {
@@ -3928,6 +4058,17 @@
            }
        },
        "request.AddRegisteredCapital": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddRegularCustomers": {
            "type": "object",
            "required": [
                "name"
@@ -4896,6 +5037,35 @@
                }
            }
        },
        "request.UpdateRegularCustomers": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateRegularCustomersList": {
            "type": "object",
            "required": [
                "regularCustomers"
            ],
            "properties": {
                "regularCustomers": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateRegularCustomers"
                    }
                }
            }
        },
        "request.UpdateSaleChance": {
            "type": "object",
            "required": [
@@ -5319,6 +5489,17 @@
                }
            }
        },
        "response.RegularCustomersResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.RegularCustomers"
                    }
                }
            }
        },
        "response.SaleChanceResponse": {
            "type": "object",
            "properties": {