[关闭]
@chengxuyuan 2019-10-29T09:45:37.000000Z 字数 2921 阅读 480

内部备注、操作记录、待办事项接口文档

销售系统


新建内部备注

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
POST /crm/action/create_remark/ 新建内部备注 YES

Request Parameters

Name Description Required Default
content 备注描述 YES

Request Data

  1. {
  2. "content":"哈哈回复哈哈"
  3. }

Response

  1. {
  2. "pk": 1,
  3. "saler": "001",
  4. "content": "哈哈哈哈哈"
  5. }

获取内部备注列表、搜索内部备注列表

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
GET /crm/action/list_remark/ 获取内部备注列表 YES

按搜索框内容搜索过滤, 可以按照备注的描述来搜索
search 微信号 示例:/crm/action/list_remark/?search=哈哈哈

Response

  1. {
  2. "count": 1,
  3. "next": null,
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 1,
  8. "saler": "001",
  9. "content": "哈哈哈哈哈",
  10. "create_time": "2019-03-26T15:15:08.190957"
  11. }
  12. ]
  13. }

新建待办事项

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
POST /crm/action/create_ToDoList/ 新建待办事项 YES

Request Parameters

Name Description Required Default
content 待办事项描述文本 YES
deadline 截止时间 YES
student 学员的pk YES
priority 优先级 YES low
is_show 是否显示 NO False

priority: low(低)、middle(中)、high(高)

Request Data

  1. {
  2. "content":"哈哈哈哈",
  3. "student":18,
  4. "priority":"middle",
  5. "deadline":"2019-03-26 10:00:00"
  6. }

Response

  1. {
  2. "pk": 1,
  3. "saler": "001",
  4. "student": 18,
  5. "content": "哈哈哈哈",
  6. "deadline": "2019-03-26",
  7. "priority": "middle",
  8. "isfinish": false
  9. }

待办事项列表、搜索待办事项、过滤待办事项

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
GET /crm/action/list_ToDoList/ 获取销待办事项列表 YES
  1. 按搜索框内容搜索过滤, 可以按照备注截止时间学员的手机号学员微信号学员姓名来搜索
    search 示例:/crm/action/list_ToDoList/?search=哈哈哈
    /crm/action/list_ToDoList/?search=2018-03-27

  2. 按条件过滤列表释义如下 :
    student(学员pk)示例: /crm/action/list_ToDoList/?student=2
    isfinish(待办是否完成)示例: /crm/action/list_ToDoList/?isfinish=True
    is_show(待办是否显示)示例: /crm/action/list_ToDoList/?is_show=False

Response

  1. {
  2. "count": 1,
  3. "next": null,
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 1,
  8. "saler": "001",
  9. "student": 18,
  10. "student_name": "陈微fa",
  11. "content": "哈哈哈哈",
  12. "deadline": "2019-03-26",
  13. "priority": "middle",
  14. "isfinish": false
  15. }
  16. ]
  17. }

新建操作记录

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
POST /crm/action/create_operate_record/ 新建操作记录 YES

Request Parameters

Name Description Required Default
action 行为事件描述 YES
student 学员的pk YES

Request Data

  1. {
  2. "action":"哈哈哈哈",
  3. "student":18
  4. }

Response

  1. {
  2. "pk": 1,
  3. "saler": "001",
  4. "student": 18,
  5. "action": "哈哈哈哈",
  6. "create_time": "2019-03-26T15:55:17.700535"
  7. }

操作记录列表、搜索列表、过滤列表

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
GET /crm/action/list_operate_record/ 获取操作记录列表 YES
  1. 按搜索框内容搜索列表释义如下: 可以按照行为事件补充说明学员的手机号学员微信号学员姓名来搜索
    search 示例:/crm/action/list_operate_record/?search=哈哈哈

  2. 按条件过滤列表释义如下 :
    student(学员pk)示例: /crm/action/list_operate_record/?student=2

Response

  1. {
  2. "count": 1,
  3. "next": null,
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 1,
  8. "saler": "001",
  9. "student": 18,
  10. "student_name": "陈微fa",
  11. "action": "哈哈哈哈",
  12. "create_time": "2019-03-26T15:55:17.700535"
  13. }
  14. ]
  15. }

结束待办事项

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
PUT /crm/action/finish_ToDoList/${pk}/ 结束待办事项 YES

Response

  1. {
  2. "pk": 2,
  3. "saler": "001",
  4. "student": 18,
  5. "content": "哈哈哈哈",
  6. "deadline": "2019-03-26",
  7. "priority": "middle",
  8. "isfinish": true,
  9. "create_time": "2019-03-26T16:02:21.682291"
  10. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注