| xqd
@@ -12,38 +12,49 @@ class MyController extends Controller
|
|
|
{
|
|
|
/**
|
|
|
* @api {get} /api/my/index 个人首页(index)
|
|
|
+ * @apiDescription 个人首页(index)
|
|
|
+ * @apiGroup My
|
|
|
+ * @apiPermission Passport
|
|
|
* @apiSuccessExample {json} Success-Response:
|
|
|
- * HTTP/1.1 200 OK
|
|
|
- {
|
|
|
- "status": true,
|
|
|
- "status_code": 0,
|
|
|
- "message": "",
|
|
|
- "data": {
|
|
|
- "my_care_num": 4,关注
|
|
|
- "my_fens_num": 3,粉丝
|
|
|
- "my_collection_num": 2,收藏
|
|
|
- "my_dream_num": 1,发帖
|
|
|
- "user": {
|
|
|
- "id": 1,
|
|
|
- "tel": "13880642880",
|
|
|
- "password": "",
|
|
|
- "nickname": "",
|
|
|
- "pic": "",
|
|
|
- "sign": 0,
|
|
|
- "money": 0,余额
|
|
|
- "sex": 1,
|
|
|
- "signture": "",个性签名
|
|
|
- "tall": "",
|
|
|
- "job": "",
|
|
|
- "emotion": 1,
|
|
|
- "address": "",
|
|
|
- "detail_address": "",
|
|
|
- "status": 1,
|
|
|
- "remember_token": "",
|
|
|
- "created_at": "2017-06-02 02:30:12",
|
|
|
- "updated_at": "2017-06-02 02:30:12",
|
|
|
- "deleted_at": null,
|
|
|
- }
|
|
|
+ * HTTP/1.1 200 O* "status": true,
|
|
|
+ * "status_code": 0,
|
|
|
+ * "message": "",
|
|
|
+ * "data": {
|
|
|
+ * "my_care_num": 4,关注
|
|
|
+ * "my_fens_num": 3,粉丝
|
|
|
+ * "my_collection_num": 2,收藏
|
|
|
+ * "my_dream_num": 1,发帖
|
|
|
+ * "user": {
|
|
|
+ * "id": 1,
|
|
|
+ * "tel": "13880642880",
|
|
|
+ * "password": "",
|
|
|
+ * "nickname": "",
|
|
|
+ * "pic": "",
|
|
|
+ * "sign": 0,
|
|
|
+ * "money": 0,余额
|
|
|
+ * "sex": 1,
|
|
|
+ * "signture": "",个性签名
|
|
|
+ * "tall": "",
|
|
|
+ * "job": "",
|
|
|
+ * "emotion": 1,
|
|
|
+ * "address": "",
|
|
|
+ * "detail_address": "",
|
|
|
+ * "status": 1,
|
|
|
+ * "remember_token": "",
|
|
|
+ * "created_at": "2017-06-02 02:30:12",
|
|
|
+ * "updated_at": "2017-06-02 02:30:12",
|
|
|
+ * "deleted_at": null,
|
|
|
+ * }
|
|
|
+ * @apiErrorExample {json} Error-Response:
|
|
|
+ * HTTP/1.1 400 Bad Request
|
|
|
+ *{
|
|
|
+ *"status": true,
|
|
|
+ *"status_code": 0,
|
|
|
+ *"message": "",
|
|
|
+ *"data": {
|
|
|
+ *"user": null
|
|
|
+ * }
|
|
|
+ *}
|
|
|
*/
|
|
|
public function index()
|
|
|
{
|
| xqd
@@ -66,7 +77,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {get} /api/my/persona 个人信息(persona)
|
|
|
* @apiDescription 个人信息(persona)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -110,7 +121,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {get} /api/my/recharge 充值(recharge)
|
|
|
* @apiDescription 充值(recharge)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -127,7 +138,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {get} /api/my/system_info 系统消息(systemInfo)
|
|
|
* @apiDescription 系统消息(systemInfo)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -165,7 +176,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {get} /api/my/reply_my 回复我的(replyMy)
|
|
|
* @apiDescription 回复我的(replyMy)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -227,7 +238,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {post} /api/my/my_reply 我的回复(myReply)
|
|
|
* @apiDescription 我的回复(recharge)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiParam {text} content 回复内容
|
|
|
* @apiParam {int} comment_id 评论ID
|
|
|
* @apiPermission Passport
|
| xqd
@@ -276,7 +287,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {get} /api/my/dream 我的梦想(dream)
|
|
|
* @apiDescription 我的梦想(recharge)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -319,7 +330,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {get} /api/my/collection 我的收藏(collection)
|
|
|
* @apiDescription 我的收藏(recharge)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -336,7 +347,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {get} /api/my/setting 设置(setting)
|
|
|
* @apiDescription 设置(setting)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -357,7 +368,7 @@ class MyController extends Controller
|
|
|
* @apiParam {string} dream 梦想标题
|
|
|
* @apiParam {string} about 梦想介绍
|
|
|
* @apiParam {int} money 梦想币
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|
| xqd
@@ -433,7 +444,7 @@ class MyController extends Controller
|
|
|
/**
|
|
|
* @api {get} /api/my/dream_about 梦想介绍(dreamAbout)
|
|
|
* @apiDescription 梦想介绍(dreamAbout)
|
|
|
- * @apiGroup Auth
|
|
|
+ * @apiGroup My
|
|
|
* @apiPermission Passport
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiSuccessExample {json} Success-Response:
|