-
Notifications
You must be signed in to change notification settings - Fork 0
user update
木杉 edited this page Aug 19, 2018
·
3 revisions
PUT /api/users
header
{
"token": "token"
}
参数
{
"nickname": "nickname",
"job": "job",
"city": "city",
"sex": 1,
"signature": "signature"
}
返回
{
"code": 1,
"msg": "成功",
"data":{
"id": "id",
"username": "username",
"email": "email",
"avatar": "",
"city": "",
"sex": 2,
"signature": "",
"role": 0,
"watchTags":[],
"createAt": "2018-8-19 15:35:16",
"updateAt": "2018-8-19 15:35:16"
}
}
- login
- register
- auth
- fetchOne
- fetchAll
- fetchByIds
- fetchShoppingcart
- fetchActivities
- update
- updateAvatar
- fetchAvatar
- sendEmail
- validateEmail
- watchTag
- watchArticleType
- watchUser
- delete
- search
- shoppingcart
- create
- update
- fetchOne
- fetchAll
- fetchByIds
- fetchByAuthorId
- fetchByCategory
- fetchByUpersId
- fetchByUserWatchArticleType
- fetchAuthorByCategory
- fetchCommentByIds
- delete
- up
- createComment
- deleteComment
- fetchCoverImg
- commentUp
- commentDown
- changeStatus
- fetchUpNumWeekly
- fetchUpNumMonthly
- search
- create
- update
- fetchOne
- fetchAll
- fetchByTag(intersect)
- fetchByAuthorId
- fetchByCourseId
- fetchByReplyAuthorId
- delete
- deleteReply
- deleteSubReply
- findReplyByIds
- createReply
- findSubReplyByIds
- createSubReply
- replyUp
- replyDown
- watch
- fetchReplyNumWeekly
- fetchReplyNumTotally
- fetchUserApprovedNumByTag
- changeStatus
- search