|
@@ -861,6 +861,57 @@ class MyController extends Controller
|
|
$users =$user->UserCareUser;
|
|
$users =$user->UserCareUser;
|
|
return $this->api($users);
|
|
return $this->api($users);
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
|
|
+ * @api {get} /api/my/careme 关注我的用户
|
|
|
|
+ * @apiDescription 关注我的用户
|
|
|
|
+ * @apiGroup My
|
|
|
|
+ * @apiPermission Passport
|
|
|
|
+ * @apiVersion 0.1.0
|
|
|
|
+ * @apiSuccessExample {json} Success-Response:
|
|
|
|
+ * HTTP/1.1 200 OK
|
|
|
|
+ *{
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data":[] or
|
|
|
|
+ * "data": [
|
|
|
|
+ * {
|
|
|
|
+ * "id": 2,
|
|
|
|
+ * "phone": "13880642881",
|
|
|
|
+ * "nickname": "name2",
|
|
|
|
+ * "avatar": "http://www.miao.com/upload/user/20170630/08e235d7211944e9b6482965b4d7c42e.jpg",
|
|
|
|
+ * "birthday": "2000-06-21",
|
|
|
|
+ * "sign": 0,
|
|
|
|
+ * "money": 0,
|
|
|
|
+ * "coin": 800,
|
|
|
|
+ * "sex": 1,
|
|
|
|
+ * "signture": "我的个性签名2",
|
|
|
|
+ * "height": 200,
|
|
|
|
+ * "work": "兼职",
|
|
|
|
+ * "emotion": 2,
|
|
|
|
+ * "address": "370105",
|
|
|
|
+ * "city": "成都",
|
|
|
|
+ * "detail_address": "",
|
|
|
|
+ * "status": 1,
|
|
|
|
+ * "wechat": "",
|
|
|
|
+ * "weibo": "",
|
|
|
|
+ * "remember_token": "",
|
|
|
|
+ * "created_at": "2017-06-25 10:42:06",
|
|
|
|
+ * "updated_at": "2017-06-30 09:15:04",
|
|
|
|
+ * "deleted_at": null,
|
|
|
|
+ * }
|
|
|
|
+ * ]
|
|
|
|
+ *}
|
|
|
|
+ * @apiErrorExample {json} Error-Response:
|
|
|
|
+ * HTTP/1.1 400 Bad Request
|
|
|
|
+ */
|
|
|
|
+ public function careMe()
|
|
|
|
+ {
|
|
|
|
+ $user = $this->getUser();
|
|
|
|
+ $users =$user->UserCareMe;
|
|
|
|
+ return $this->api($users);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
public function insertSearchTable($id,$keyword)
|
|
public function insertSearchTable($id,$keyword)
|