[关闭]
@chengxuyuan 2019-10-29T09:44:55.000000Z 字数 1560 阅读 328

员工素材文档

学管系统


新建素材

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
POST /server/job_management/batch_create_material/ 批量建素材 YES

Request Parameters

Name Description Required Default
images 图片组 YES
source 来源(praise/share) YES praise

Request Data

  1. {
  2. "images":["https://static1.bcjiaoyu.com/bcgame_face2face/13301257976/dd5fa49c26f94e50ed763921cc8fb634_s.png-1378x848"],
  3. "source":"praise"
  4. }

Response

  1. {
  2. "status": 0,
  3. "message": ""
  4. }

获取素材列表

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
GET /server/job_management/list_material/ 素材列表 YES

按条件过滤列表释义如下 :
owner(用户的账号)示例: /server/job_management/list_material/?owner=15201052252
month(按月份过滤)示例: /server/job_management/list_material/?month=2019-10

按照账号、姓名搜索列表释义如下:
search 示例:/server/job_management/list_material/?search=15201052252/server/job_management/list_material/?search=勿问情殇

Response

  1. {
  2. "count": 4,
  3. "next": null,
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 4,
  8. "owner": "15201052252",
  9. "image": "https://static1.bcjiaoyu.com/bcgame_face2face/13301257976/dd5fa49c26f94e50ed763921cc8fb634_s.png-1378x848",
  10. "source": "praise",
  11. "create_time": "2019-10-18T16:45:02.678413"
  12. }]
  13. }

获取某人的好评数、分享数、学生数

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
GET /server/job_management/promotion_user_info/ 素材人员详情数据 YES

示例: http://127.0.0.1:8000/server/job_management/promotion_user_info/?username=15201052252&month=2019-10

Request Parameters

Name Description Required Default
username 素材人员的账号 YES
month 月份 YES

Response

  1. {
  2. "username": "15201052252",
  3. "praise_count": 4,
  4. "share_count": 0,
  5. "student_count": 30,
  6. "month_share_count": 0,
  7. "month_praise_count": 4
  8. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注