add
wangpengfei
2023-07-20 b54c384d9bb8bec57e0c480d4d65716a3b799370
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": [
@@ -5630,6 +5749,9 @@
        "model.MasterOrder": {
            "type": "object",
            "properties": {
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "client_id": {
                    "type": "integer"
                },
@@ -6011,6 +6133,9 @@
                "addressee": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
@@ -6204,6 +6329,17 @@
                }
            }
        },
        "model.Satisfaction": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.ServiceContract": {
            "type": "object",
            "properties": {
@@ -6342,6 +6478,9 @@
        "model.SubOrder": {
            "type": "object",
            "properties": {
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
@@ -7091,6 +7230,17 @@
            }
        },
        "request.AddSalesSources": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddSatisfaction": {
            "type": "object",
            "required": [
                "name"
@@ -8857,6 +9007,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": {
@@ -9611,6 +9790,17 @@
                }
            }
        },
        "response.SatisfactionResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Satisfaction"
                    }
                }
            }
        },
        "response.ServiceContractsResponse": {
            "type": "object",
            "properties": {