销售线索管理
橙旭园
获取试听记录
Method and Url Structure
| Method |
Resource URL |
| GET |
/userinfo/listen_records/ |
cURL Example
curl -X GEThttp://localhost:8000/server/userinfo/listen_records/# 根据状态筛选 ?status=http://localhost:8000/server/userinfo/listen_records/?status=9# 根据联系人查找 ?contact=http://localhost:8000/server/userinfo/listen_records/?contact=110
- 状态
- 新建 ---- 0
- 已购买 -- 5
- 已预约 -- 7
- 已上课 -- 8
- 归档 ---- 9
JSON Response
{ "count": 3, "next": null, "previous": null, "results": [ { "pk": 3, "contact": "120", "broker": null, "source": "试听申请", "status": 0, "status_display": "新建", "remake": "我真的还想再活500年" }, { "pk": 2, "contact": "119", "broker": null, "source": "试听申请", "status": 0, "status_display": "新建", "remake": "你就像那冬天里的一把火" }, { "pk": 1, "contact": "110", "broker": "负责人", "source": "来源", "status": 0, "status_display": "新建", "remake": "打,打,打劫" } ]}
新建试听记录
Method and Url Structure
| Method |
Resource URL |
| POST |
/userinfo/listen_record_create/ |
cURL Example
curl -X POSThttp://localhost:8000/server/userinfo/listen_record_create/
Request and Parameters
| Name |
Description |
Required |
Default |
| contact |
联系人 |
YES |
|
| broker |
负责人 |
NO |
|
| source |
来源 |
NO |
|
| remake |
备注 |
NO |
|
Request
{ "contact": 7788945, "broker": "蓝翔", "source": "来源", "remake": "挖掘机技术哪家强"}
JSON Response
{ "pk": 4, "contact": "7788945", "broker": "蓝翔", "source": "来源", "status": 0, "status_display": "新建", "remake": "挖掘机技术哪家强"}
更改记录状态
Method and Url Structure
| Method |
Resource URL |
| POST |
/userinfo/listen_record_update/ |
cURL Example
curl -X POSThttp://localhost:8000/server/userinfo/listen_record_update/
Request and Parameters
| Name |
Description |
Required |
Default |
| pk |
联系人pk |
YES |
|
| status |
状态 |
YES |
|
Request
{ "pk": 4, "status": 9}
JSON Response
{ "pk": 4, "contact": "7788945", "broker": "蓝翔", "source": "来源", "status": 9, "status_display": "归档", "remake": "挖掘机技术哪家强"}
获取访问记录
Method and Url Structure
| Method |
Resource URL |
| GET |
/userinfo/visit_records/ |
cURL Example
curl -X GEThttp://localhost:8000/server/userinfo/visit_records/?contact=7788945
JSON Response
{ "count": 2, "next": null, "previous": null, "results": [ { "pk": 2, "contact": "7788945", "detail": "中国山东找蓝翔", "visit_time": "2018-02-01" }, { "pk": 1, "contact": "7788945", "detail": "中国山东找蓝翔", "visit_time": "2018-02-01" } ]}
新建访问记录
Method and Url Structure
| Method |
Resource URL |
| POST |
/userinfo/visit_record_create/ |
cURL Example
curl -X POSThttp://localhost:8000/server/userinfo/visit_record_create/
Request and Parameters
| Name |
Description |
Required |
Default |
| contact |
联系人 |
YES |
|
| detail |
详情 |
NO |
|
| visit_time |
访问时间 |
NO |
|
Request
{ "contact": "7788945", "detail": "中国山东找蓝翔", "visit_time": "2018-02-01"}
JSON Response
{ "pk": 2, "contact": "7788945", "detail": "中国山东找蓝翔", "visit_time": "2018-02-01"}