| | |
| | | "summary": "获取产品列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "name": "ProductName", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "name": "ProductNumber", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "产品名称", |
| | | "name": "productName", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "产品编码", |
| | | "name": "productNumber", |
| | | "in": "query" |
| | | } |
| | | ], |
| | |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesLeads/push": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesLeads" |
| | | ], |
| | | "summary": "推进销售线索", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.PushSalesLeads" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | |
| | | "constvar.SalesStatus": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | -1, |
| | | 0, |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5 |
| | | -1 |
| | | ], |
| | | "x-enum-comments": { |
| | | "SalesStatusFail": "失败", |
| | |
| | | "SalesStatusSuccess": "成功" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "SalesStatusFail", |
| | | "SalesStatusNew", |
| | | "SalesStatusIng", |
| | | "SalesStatusSuccess", |
| | | "SalesStatusLevelUptoClient", |
| | | "SalesStatusLevelUptoClientAndSalesChance" |
| | | "SalesStatusLevelUptoClientAndSalesChance", |
| | | "SalesStatusFail" |
| | | ] |
| | | }, |
| | | "constvar.ServiceContractKeywordType": { |
| | |
| | | }, |
| | | "latest_service_time": { |
| | | "type": "string" |
| | | }, |
| | | "member": { |
| | | "$ref": "#/definitions/model.User" |
| | | }, |
| | | "member_id": { |
| | | "type": "integer" |
| | |
| | | }, |
| | | "province_id": { |
| | | "type": "integer" |
| | | }, |
| | | "reason": { |
| | | "type": "string" |
| | | }, |
| | | "region": { |
| | | "$ref": "#/definitions/model.Region" |
| | |
| | | "type": "integer" |
| | | }, |
| | | "type": { |
| | | "description": "类型: client: 客户; salesLead: 销售线索; contact: 联系人; followRecord: 跟进记录", |
| | | "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\": \"重要级别\"}", |
| | | "type": "object", |
| | | "additionalProperties": true |
| | | } |
| | |
| | | "request.GetSalesLeadsList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "search_map": { |
| | | "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"} {\"name\": \"客户名称\", \"number\": \"销售线索编号\", \"contact_name\": \"联系人姓名\", \"phone\": \"手机号码\", \"sales_resources\": \"商机来源\", \"city\": \"城市\", \"province\": \"省份\", \"member_name\": \"负责人\"}", |
| | | "type": "object", |
| | | "additionalProperties": true |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.PushSalesLeads": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "reason": { |
| | | "type": "string" |
| | | }, |
| | | "step": { |
| | | "description": "商机状态: 1: 跟进中; -1:失败", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.SalesStatus" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | "request.Register": { |
| | | "type": "object", |
| | | "properties": { |