-
Notifications
You must be signed in to change notification settings - Fork 0
course fetchOne
木杉 edited this page Aug 16, 2018
·
2 revisions
GET /api/courses/:id
返回
{
"code": 1,
"msg": "SUCCESS",
"data": {
"id": "5b29e61cca51891746b20206",
"title": "title",
"coverImg": "asdasdsad",
"direction": 1,
"type": [0, 1, 2],
"difficulty": 0,
"price": 10,
"sections": [
{
"title": "title"
}
]
}
}
- 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