zhangqian
2023-08-02 6e9274c27ffc8fe7f41e2c3c06a239d4c3fb09e5
docs/docs.go
@@ -135,6 +135,36 @@
                }
            }
        },
        "/api/assign/assign": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Assign"
                ],
                "summary": "审核",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.Assign"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/authority/add": {
            "post": {
                "security": [
@@ -471,7 +501,7 @@
                }
            }
        },
        "/api/client/delete/{id}": {
        "/api/client/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -482,11 +512,13 @@
                "summary": "删除客户",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "客户ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteClient"
                        }
                    }
                ],
                "responses": {
@@ -1236,14 +1268,25 @@
            }
        },
        "/api/contract/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "获取合同列表",
                "summary": "销售合同列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetContractList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -2097,7 +2140,7 @@
                "tags": [
                    "FollowRecord"
                ],
                "summary": "跟进记录列表",
                "summary": "回访记录列表",
                "parameters": [
                    {
                        "description": "参数",
@@ -2608,14 +2651,25 @@
            }
        },
        "/api/masterOrder/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "MasterOrder"
                ],
                "summary": "主订单列表",
                "summary": "销售总单列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetMasterOrderList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -2772,19 +2826,42 @@
            }
        },
        "/api/orderManage/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "OrderManage"
                ],
                "summary": "工单列表",
                "summary": "工单管理列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetOrderManageList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.OrderManageResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
@@ -2998,14 +3075,25 @@
            }
        },
        "/api/plan/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Plan"
                ],
                "summary": "获取计划列表",
                "summary": "生成计划列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetPlanList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -3394,7 +3482,7 @@
            }
        },
        "/api/quotation/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
@@ -3402,6 +3490,17 @@
                    "Quotation"
                ],
                "summary": "报价单列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetQuotationList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -4373,14 +4472,25 @@
            }
        },
        "/api/saleChance/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SaleChance"
                ],
                "summary": "获取销售机会列表",
                "summary": "销售机会列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetSaleChanceList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -4730,14 +4840,25 @@
            }
        },
        "/api/salesDetails/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "获取销售明细列表",
                "summary": "销售明细单列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetSalesDetailsList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -4979,14 +5100,25 @@
            }
        },
        "/api/salesRefund/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                ],
                "summary": "销售退款列表",
                "summary": "销售退款单列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetSalesRefundList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -5098,14 +5230,25 @@
            }
        },
        "/api/salesReturn/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesReturn"
                ],
                "summary": "获取销售退货列表",
                "summary": "销售退货单列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetSalesReturnList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -5574,14 +5717,25 @@
            }
        },
        "/api/serviceContract/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "ServiceContract"
                ],
                "summary": "服务合同列表",
                "summary": "生成计划列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetServiceContractList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -5931,7 +6085,7 @@
            }
        },
        "/api/serviceFeeManage/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
@@ -5939,6 +6093,17 @@
                    "ServiceFeeManage"
                ],
                "summary": "服务费管理列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetServiceFeeManageList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -6050,14 +6215,25 @@
            }
        },
        "/api/serviceFollowup/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "ServiceFollowup"
                ],
                "summary": "服务跟进列表",
                "summary": "回访单管理列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetServiceFollowupList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -6395,14 +6571,25 @@
            }
        },
        "/api/subOrder/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SubOrder"
                ],
                "summary": "获取子订单列表",
                "summary": "销售子单列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetSubOrderList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -6913,6 +7100,67 @@
                "SalesStatusFail",
                "SalesStatusLevelUptoClient",
                "SalesStatusLevelUptoClientAndSalesChance"
            ]
        },
        "constvar.ServiceContractKeywordType": {
            "type": "string",
            "enum": [
                "服务合同编号",
                "客户名称",
                "签约日期",
                "合同类型",
                "合同状态",
                "负责人",
                "产品名称",
                "服务开始日",
                "服务到期日",
                "价税合计"
            ],
            "x-enum-varnames": [
                "ServiceContractKeywordContractNo",
                "ServiceContractKeywordCustomerName",
                "ServiceContractKeywordContractDate",
                "ServiceContractKeywordContractType",
                "ServiceContractKeywordContractStatus",
                "ServiceContractKeywordPrincipal",
                "ServiceContractKeywordProductName",
                "ServiceContractKeywordServiceBeginDate",
                "ServiceContractKeywordServiceEndDate",
                "ServiceContractKeywordServiceTotalPrice"
            ]
        },
        "constvar.ServiceContractQueryClass": {
            "type": "string",
            "enum": [
                "30天后过期",
                "60天后过期",
                "已过期15天",
                "已过期60天"
            ],
            "x-enum-varnames": [
                "ServiceContractQueryClassExpireAfter30Day",
                "ServiceContractQueryClassExpireAfter60Day",
                "ServiceContractQueryClassExpiredBefore15Day",
                "ServiceContractQueryClassExpiredBefore60Day"
            ]
        },
        "constvar.ServiceFollowupKeywordType": {
            "type": "string",
            "enum": [
                "回访单编号",
                "客户名称",
                "联系人姓名",
                "客户服务单",
                "回访人",
                "满意度"
            ],
            "x-enum-varnames": [
                "ServiceFollowupKeywordFollowupNo",
                "ServiceFollowupKeywordCustomerName",
                "ServiceFollowupKeywordContactName",
                "ServiceFollowupKeywordCustomerServiceNo",
                "ServiceFollowupKeywordVisitor",
                "ServiceFollowupKeywordSatisfactionDegree"
            ]
        },
        "constvar.UserType": {
@@ -7562,6 +7810,44 @@
                },
                "title": {
                    "type": "string"
                }
            }
        },
        "model.OrderManage": {
            "type": "object",
            "properties": {
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
                "contactId": {
                    "type": "integer"
                },
                "file": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "orderType": {
                    "type": "integer"
                },
                "problemDescription": {
                    "type": "string"
                },
                "reportSourceId": {
                    "type": "integer"
                },
                "sourceSheet": {
                    "type": "integer"
                }
            }
        },
@@ -9561,6 +9847,20 @@
                }
            }
        },
        "request.Assign": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "member_id": {
                    "type": "integer"
                },
                "type": {
                    "type": "string"
                }
            }
        },
        "request.CasbinInfo": {
            "type": "object",
            "properties": {
@@ -9682,6 +9982,17 @@
                }
            }
        },
        "request.DeleteClient": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteCountry": {
            "type": "object",
            "properties": {
@@ -9779,6 +10090,22 @@
                }
            }
        },
        "request.GetContractList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetFollowRecordList": {
            "type": "object",
            "properties": {
@@ -9795,7 +10122,208 @@
                }
            }
        },
        "request.GetMasterOrderList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetOrderManageList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetPlanList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetQuotationList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetSaleChanceList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetSalesDetailsList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetSalesLeadsList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetSalesRefundList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetSalesReturnList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetServiceContractList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.ServiceContractKeywordType"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "queryClass": {
                    "$ref": "#/definitions/constvar.ServiceContractQueryClass"
                }
            }
        },
        "request.GetServiceFeeManageList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetServiceFollowupList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.ServiceFollowupKeywordType"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetSubOrderList": {
            "type": "object",
            "properties": {
                "keyword": {
@@ -11938,6 +12466,9 @@
        "response.ContractResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12315,6 +12846,9 @@
        "response.MasterOrderResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12330,6 +12864,20 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Menu"
                    }
                }
            }
        },
        "response.OrderManageResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.OrderManage"
                    }
                }
            }
@@ -12363,6 +12911,9 @@
        "response.PlanResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12396,6 +12947,9 @@
        "response.QuotationResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12473,6 +13027,9 @@
        "response.SaleChanceResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12506,6 +13063,9 @@
        "response.SalesDetailsResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12531,6 +13091,9 @@
        "response.SalesRefundResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12542,6 +13105,9 @@
        "response.SalesReturnResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12608,6 +13174,9 @@
        "response.ServiceContractsResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12619,6 +13188,9 @@
        "response.ServiceFeeManageResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12630,6 +13202,9 @@
        "response.ServiceFollowupResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {
@@ -12652,6 +13227,9 @@
        "response.SubOrderResponse": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "list": {
                    "type": "array",
                    "items": {