...
|
...
|
@@ -16,5 +16,34 @@ module.exports = { |
|
|
auth: true,
|
|
|
api: 'app.grass.getTotalInboxUnread',
|
|
|
params: {}
|
|
|
},
|
|
|
|
|
|
// 文章详情
|
|
|
'/api/grass/columnArticleDetail': {
|
|
|
api: 'app.grass.columnArticleDetail',
|
|
|
params: {
|
|
|
uid: {type: Number},
|
|
|
articleId: {type: Number, require: true},
|
|
|
singleDetail: {type: String, require: true}, // default value: Y
|
|
|
fromXianyu: {type: String, require: true}, // default value: Y
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// 推荐文章
|
|
|
'/api/grass/xianyuOtherArticles': {
|
|
|
api: 'app.grass.xianyuOtherArticles',
|
|
|
params: {
|
|
|
articleId: {type: Number, require: true}
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// 点赞
|
|
|
'/api/grass/updateArticlePraise': {
|
|
|
api: 'app.grass.updateArticlePraise',
|
|
|
auth: true,
|
|
|
params: {
|
|
|
articleId: {type: Number, require: true},
|
|
|
status: {type: Number, require: true}, // 0 未点赞 1点赞
|
|
|
}
|
|
|
},
|
|
|
}; |
...
|
...
|
|