| | |
| | | } |
| | | } |
| | | }, |
| | | "/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" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesLeads/update": { |
| | | "put": { |
| | | "produces": [ |
| | |
| | | "province_id": { |
| | | "type": "integer" |
| | | }, |
| | | "reason": { |
| | | "type": "string" |
| | | }, |
| | | "region": { |
| | | "$ref": "#/definitions/model.Region" |
| | | }, |
| | |
| | | "type": "integer" |
| | | }, |
| | | "search_map": { |
| | | "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; \"not_contact\": 超过15天未联系; \"public_sea\": 公海客户", |
| | | "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": { |