add
wangpengfei
2023-07-20 aab89dff18f597d4cdd10c73b9ad8c3c14d82d28
docs/docs.go
@@ -4162,6 +4162,125 @@
                }
            }
        },
        "/api/satisfaction/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Satisfaction"
                ],
                "summary": "添加满意度",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddSatisfaction"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/satisfaction/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Satisfaction"
                ],
                "summary": "删除满意度",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/satisfaction/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Satisfaction"
                ],
                "summary": "满意度列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.SatisfactionResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/satisfaction/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Satisfaction"
                ],
                "summary": "更新满意度",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateSatisfactions"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceContract/add": {
            "post": {
                "produces": [
@@ -4732,6 +4851,125 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateSubOrder"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/timelyRate/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "TimelyRate"
                ],
                "summary": "添加销售阶段",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddTimelyRate"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/timelyRate/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "TimelyRate"
                ],
                "summary": "删除销售阶段",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/timelyRate/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "TimelyRate"
                ],
                "summary": "获取销售阶段列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.TimelyRateResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/timelyRate/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "TimelyRate"
                ],
                "summary": "更新销售阶段",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateTimelyRates"
                        }
                    }
                ],
@@ -5630,6 +5868,9 @@
        "model.MasterOrder": {
            "type": "object",
            "properties": {
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "client_id": {
                    "type": "integer"
                },
@@ -6011,6 +6252,9 @@
                "addressee": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
@@ -6204,6 +6448,17 @@
                }
            }
        },
        "model.Satisfaction": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.ServiceContract": {
            "type": "object",
            "properties": {
@@ -6325,7 +6580,7 @@
                "remark": {
                    "type": "string"
                },
                "satisfaction": {
                "satisfactionId": {
                    "type": "integer"
                },
                "serviceId": {
@@ -6334,7 +6589,7 @@
                "solveRate": {
                    "type": "integer"
                },
                "timelyRate": {
                "timelyRateId": {
                    "type": "integer"
                }
            }
@@ -6342,6 +6597,9 @@
        "model.SubOrder": {
            "type": "object",
            "properties": {
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
@@ -6362,6 +6620,17 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                }
            }
        },
        "model.TimelyRate": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -7101,6 +7370,17 @@
                }
            }
        },
        "request.AddSatisfaction": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddServiceContract": {
            "type": "object",
            "properties": {
@@ -7334,6 +7614,17 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                }
            }
        },
        "request.AddTimelyRate": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
@@ -8857,6 +9148,35 @@
                }
            }
        },
        "request.UpdateSatisfaction": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateSatisfactions": {
            "type": "object",
            "required": [
                "satisfactions"
            ],
            "properties": {
                "satisfactions": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateSatisfaction"
                    }
                }
            }
        },
        "request.UpdateServiceContract": {
            "type": "object",
            "properties": {
@@ -9121,6 +9441,35 @@
                }
            }
        },
        "request.UpdateTimelyRate": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateTimelyRates": {
            "type": "object",
            "required": [
                "timely_rate"
            ],
            "properties": {
                "timely_rate": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateTimelyRate"
                    }
                }
            }
        },
        "response.CityResponse": {
            "type": "object",
            "properties": {
@@ -9347,6 +9696,13 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SalesSources"
                    }
                },
                "satisfaction": {
                    "description": "满意度",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Satisfaction"
                    }
                }
            }
@@ -9611,6 +9967,17 @@
                }
            }
        },
        "response.SatisfactionResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Satisfaction"
                    }
                }
            }
        },
        "response.ServiceContractsResponse": {
            "type": "object",
            "properties": {
@@ -9655,6 +10022,17 @@
                }
            }
        },
        "response.TimelyRateResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.TimelyRate"
                    }
                }
            }
        },
        "response.UserResponse": {
            "type": "object",
            "properties": {