员工素材文档
学管系统
新建素材
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
{
"images":["https://static1.bcjiaoyu.com/bcgame_face2face/13301257976/dd5fa49c26f94e50ed763921cc8fb634_s.png-1378x848"],
"source":"praise"
}
Response
{
"status": 0,
"message": ""
}
获取素材列表
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
{
"count": 4,
"next": null,
"previous": null,
"results": [
{
"pk": 4,
"owner": "15201052252",
"image": "https://static1.bcjiaoyu.com/bcgame_face2face/13301257976/dd5fa49c26f94e50ed763921cc8fb634_s.png-1378x848",
"source": "praise",
"create_time": "2019-10-18T16:45:02.678413"
}]
}
获取某人的好评数、分享数、学生数
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
{
"username": "15201052252",
"praise_count": 4,
"share_count": 0,
"student_count": 30,
"month_share_count": 0,
"month_praise_count": 4
}