docs: 更新文档

This commit is contained in:
wenbo.dong 2017-08-11 16:35:53 +08:00
parent 6675eec66f
commit 2b31b4f383
2 changed files with 8 additions and 8 deletions

View File

@ -19,7 +19,7 @@ class followController extends baseController {
// ctx.body = yapi.commons.resReturn(null, 402, err.message);
// }
}
/**
@ -34,7 +34,7 @@ class followController extends baseController {
* @returns {Object}
* @example /follow/list
*/
async list(ctx) {
let uid = ctx.request.query.uid,
page = ctx.request.query.page || 1,
@ -47,7 +47,7 @@ class followController extends baseController {
try {
let result = await this.Model.listWithPaging(uid, page, limit);
let count = await this.Model.listCount(uid);
ctx.body = yapi.commons.resReturn({
total: Math.ceil(count / limit),
list: result
@ -60,7 +60,7 @@ class followController extends baseController {
/**
* 取消关注
* @interface /follow/list
* @interface /follow/del
* @method POST
* @category follow
* @foldnumber 10
@ -86,7 +86,7 @@ class followController extends baseController {
/**
* 添加关注
* @interface /follow/list
* @interface /follow/add
* @method POST
* @category follow
* @foldnumber 10
@ -145,4 +145,4 @@ class followController extends baseController {
}
module.exports = followController;
module.exports = followController;

View File

@ -143,7 +143,7 @@ var followController = function (_baseController) {
/**
* 取消关注
* @interface /follow/list
* @interface /follow/del
* @method POST
* @category follow
* @foldnumber 10
@ -205,7 +205,7 @@ var followController = function (_baseController) {
/**
* 添加关注
* @interface /follow/list
* @interface /follow/add
* @method POST
* @category follow
* @foldnumber 10