-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add user_qc and user_r #9
base: master
Are you sure you want to change the base?
Conversation
新增了QC端的接口文档和站长接口文档
|
||
修改接口的update内所有字段均为可选,更新方式为增量更新。 | ||
|
||
例如,update下不含user_pn,则不对质检员手机号进行更新。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user__pn
"user__is_active": true, | ||
"qc_place__name": "测试场地3", | ||
"qc_place_id": 1, | ||
"id":1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id:"1"这行请去掉。
"name":"fanhangyu", | ||
"qc_role": "reviewer", | ||
"user__is_active": true, | ||
"qc_place__name": "测试场地3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qc_place__name这个是只读的,请去掉。
"qc_place_id": 1, | ||
"id":1, | ||
"join_date": 1548064560, | ||
"qc_place__loc_desc": "不知道ddd", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同qc_place,后面的相同问题不再赘述。
|
||
### 应答 | ||
|
||
| 字段名称 | 类型 | 含义 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不建议这么写。
可以写成应答为用户二维码的图像二进制数据。
|
||
| 字段名称 | 类型 | 含义 | | ||
| -------- | ---- | ---------- | | ||
| referrer | Dict | 推荐人信息 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
类型为Dict的,应该新起一个文件在/Views/...对应的项目里,类似RecycleBinView, RecyclingStaffView这种。这里仅告知,请尽快熟悉。本次暂不做要求。
"position":"3", | ||
"user_pn1":null, | ||
"operator":"1", | ||
"aaa":2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaa:2是什么,无关的请去掉。
"expire_date":1551323899, | ||
"r_state":"pass", | ||
"pass_date":null, | ||
"referrer_code":"8e3d249bddcb42ffa6a415f7ba1fe99e", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
referrer_code是只读的,请去掉。
"percentage":"0.0000", | ||
"expire_date":1551323899, | ||
"r_state":"pass", | ||
"pass_date":null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
所有"date"或"time"结尾的字段请特殊注意其可读性,一般都是只读的,所以请去掉。但是上面的expire_date是个例外。(所以请写文档时看Serializer与Model的定义)
"pass_date":null, | ||
"referrer_code":"8e3d249bddcb42ffa6a415f7ba1fe99e", | ||
"position":"3", | ||
"user_pn1":null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user_pn1是什么?请去掉。
新增了miniprogram_docs\docs\Reference\admin\user\ 的QC端的接口文档和站长接口文档