| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ServiceContractStatus" |
| | | "合同状态" |
| | | ], |
| | | "summary": "添加服务合同状态", |
| | | "summary": "添加合同状态", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ServiceContractStatus" |
| | | "合同状态" |
| | | ], |
| | | "summary": "删除服务合同状态", |
| | | "summary": "删除合同状态", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ServiceContractStatus" |
| | | "合同状态" |
| | | ], |
| | | "summary": "获取服务合同状态列表", |
| | | "summary": "获取合同状态列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "name": "keyword", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "type": "string", |
| | | "x-enum-varnames": [ |
| | | "ServiceContractStatusKeywordCustomerName" |
| | | ], |
| | | "name": "keywordType", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "type": "string", |
| | | "x-enum-varnames": [ |
| | | "ServiceContractStatusQueryClassExpireLessThen60Days" |
| | | ], |
| | | "name": "queryClass", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.ServiceContractStatusResponse" |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.ServiceContractStatus" |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ServiceContractStatus" |
| | | "合同状态" |
| | | ], |
| | | "summary": "更新服务合同状态", |
| | | "summary": "更新合同状态", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateServiceContractStatuss" |
| | | "$ref": "#/definitions/request.UpdateServiceContractStatus" |
| | | } |
| | | } |
| | | ], |
| | |
| | | "ServiceContractQueryClassExpireAfter60Day", |
| | | "ServiceContractQueryClassExpiredBefore15Day", |
| | | "ServiceContractQueryClassExpiredBefore60Day" |
| | | ] |
| | | }, |
| | | "constvar.ServiceContractStatusKeywordType": { |
| | | "type": "string", |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "ServiceContractStatusKeywordCustomerName" |
| | | ] |
| | | }, |
| | | "constvar.ServiceContractStatusQueryClass": { |
| | | "type": "string", |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "ServiceContractStatusQueryClassExpireLessThen60Days" |
| | | ] |
| | | }, |
| | | "constvar.ServiceFeeKeywordType": { |
| | |
| | | }, |
| | | "request.AddServiceContractStatus": { |
| | | "type": "object", |
| | | "required": [ |
| | | "name" |
| | | ], |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | |
| | | "type": "integer" |
| | | }, |
| | | "search_map": { |
| | | "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\", \"is_first\": \"是否是首要联系人\"}", |
| | | "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\", \"is_first\": \"是否是首要联系人\", \"client_id\": \"clientId 用于返回首要联系人\"}", |
| | | "type": "object", |
| | | "additionalProperties": true |
| | | } |
| | |
| | | }, |
| | | "request.UpdateServiceContractStatus": { |
| | | "type": "object", |
| | | "required": [ |
| | | "id", |
| | | "name" |
| | | ], |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateServiceContractStatuss": { |
| | | "type": "object", |
| | | "required": [ |
| | | "service_contract_status" |
| | | ], |
| | | "properties": { |
| | | "service_contract_status": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/request.UpdateServiceContractStatus" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.Satisfaction" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "response.ServiceContractStatusResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | | "list": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.ServiceContractStatus" |
| | | } |
| | | } |
| | | } |