|
@@ -81,33 +81,33 @@ class MyController extends Controller
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* HTTP/1.1 200 OK
|
|
*{
|
|
*{
|
|
- *"status": true,
|
|
|
|
- *"status_code": 0,
|
|
|
|
- *"message": "",
|
|
|
|
- *"data": {
|
|
|
|
- *"user": {
|
|
|
|
- * "id": 1,
|
|
|
|
- * "tel": "13880642880",手机
|
|
|
|
- * "nickname": "",昵称
|
|
|
|
- * "sex": 1,性别
|
|
|
|
- * "job": "", 职业
|
|
|
|
- * "emotion": 1,情感状态
|
|
|
|
- * "address": "",
|
|
|
|
- * "detail_address": "",
|
|
|
|
- * "status": 1,
|
|
|
|
- * "tall": 1, 身高
|
|
|
|
- * }
|
|
|
|
- * }
|
|
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data": {
|
|
|
|
+ * "user": {
|
|
|
|
+ * "id": 1,
|
|
|
|
+ * "tel": "13880642880",手机
|
|
|
|
+ * "nickname": "",昵称
|
|
|
|
+ * "sex": 1,性别
|
|
|
|
+ * "job": "", 职业
|
|
|
|
+ * "emotion": 1,情感状态
|
|
|
|
+ * "address": "",
|
|
|
|
+ * "detail_address": "",
|
|
|
|
+ * "status": 1,
|
|
|
|
+ * "tall": 1, 身高
|
|
|
|
+ * }
|
|
|
|
+ * }
|
|
*}
|
|
*}
|
|
* @apiErrorExample {json} Error-Response:
|
|
* @apiErrorExample {json} Error-Response:
|
|
* HTTP/1.1 400 Bad Request
|
|
* HTTP/1.1 400 Bad Request
|
|
*{
|
|
*{
|
|
- *"status": true,
|
|
|
|
- *"status_code": 0,
|
|
|
|
- *"message": "",
|
|
|
|
- *"data": {
|
|
|
|
- *"user": null
|
|
|
|
- * }
|
|
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data": {
|
|
|
|
+ * "user": null
|
|
|
|
+ * }
|
|
*}
|
|
*}
|
|
*/
|
|
*/
|
|
public function persona()
|
|
public function persona()
|
|
@@ -142,26 +142,27 @@ class MyController extends Controller
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* HTTP/1.1 200 OK
|
|
*{
|
|
*{
|
|
- *"status": true,
|
|
|
|
- *"status_code": 0,
|
|
|
|
- *"message": "",
|
|
|
|
- * "data": {
|
|
|
|
- *"data": [
|
|
|
|
- *{
|
|
|
|
- *"nickname": "",充值人
|
|
|
|
- *"pivot": {
|
|
|
|
- *"coin": 0 捐赠梦想币数量
|
|
|
|
- * }
|
|
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data": {
|
|
|
|
+ * "data": [
|
|
|
|
+ * {
|
|
|
|
+ * "nickname": "",充值人
|
|
|
|
+ * "pivot": {
|
|
|
|
+ * "coin": 0 捐赠梦想币数量
|
|
|
|
+ * }
|
|
|
|
+ * }
|
|
*}
|
|
*}
|
|
* @apiErrorExample {json} Error-Response:
|
|
* @apiErrorExample {json} Error-Response:
|
|
* HTTP/1.1 400 Bad Request
|
|
* HTTP/1.1 400 Bad Request
|
|
* {
|
|
* {
|
|
- *"status": true,
|
|
|
|
- *"status_code": 0,
|
|
|
|
- *"message": "",
|
|
|
|
- *"data": {
|
|
|
|
- *"data": []
|
|
|
|
- *}
|
|
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data": {
|
|
|
|
+ * "data": []
|
|
|
|
+ * }
|
|
*}
|
|
*}
|
|
*/
|
|
*/
|
|
public function systemInfo()
|
|
public function systemInfo()
|
|
@@ -181,28 +182,28 @@ class MyController extends Controller
|
|
* HTTP/1.1 200 OK
|
|
* HTTP/1.1 200 OK
|
|
*
|
|
*
|
|
* {
|
|
* {
|
|
- *"status": true,
|
|
|
|
- *"status_code": 0,
|
|
|
|
- *"message": "",
|
|
|
|
- *"data": {
|
|
|
|
- *"comments_infos": [
|
|
|
|
- *{
|
|
|
|
- * "id": 1,
|
|
|
|
- *"dream_id": 2,
|
|
|
|
- *"user_id": 2,
|
|
|
|
- *"level": 2,
|
|
|
|
- *"content": "啊哈", 评论内容
|
|
|
|
- *"created_at": null, 评论时间
|
|
|
|
- *"updated_at": null,
|
|
|
|
- *"deleted_at": null,
|
|
|
|
- *"dream_name": "去旅游去旅游2", 梦想介绍
|
|
|
|
- *"dream_pic": "aaaaa", 梦想图片
|
|
|
|
- * "progress": 0, 进度
|
|
|
|
- *"reviewer": "22222", 评论者
|
|
|
|
- *"reviewer_pic": "22222pic", 评论者头像
|
|
|
|
- *}
|
|
|
|
- *]
|
|
|
|
- *}
|
|
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data": {
|
|
|
|
+ * "comments_infos": [
|
|
|
|
+ * {
|
|
|
|
+ * "id": 1,
|
|
|
|
+ * "dream_id": 2,
|
|
|
|
+ * "user_id": 2,
|
|
|
|
+ * "level": 2,
|
|
|
|
+ * "content": "啊哈", 评论内容
|
|
|
|
+ * "created_at": null, 评论时间
|
|
|
|
+ * "updated_at": null,
|
|
|
|
+ * "deleted_at": null,
|
|
|
|
+ * "dream_name": "去旅游去旅游2", 梦想介绍
|
|
|
|
+ * "dream_pic": "aaaaa", 梦想图片
|
|
|
|
+ * "progress": 0, 进度
|
|
|
|
+ * "reviewer": "22222", 评论者
|
|
|
|
+ * "reviewer_pic": "22222pic", 评论者头像
|
|
|
|
+ * }
|
|
|
|
+ * ]
|
|
|
|
+ * }
|
|
* }
|
|
* }
|
|
* @apiErrorExample {json} Error-Response:
|
|
* @apiErrorExample {json} Error-Response:
|
|
* HTTP/1.1 400 Bad Request
|
|
* HTTP/1.1 400 Bad Request
|
|
@@ -243,24 +244,24 @@ class MyController extends Controller
|
|
* @apiVersion 0.1.0
|
|
* @apiVersion 0.1.0
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* {
|
|
* {
|
|
- *"status": true,
|
|
|
|
- *"status_code": 0,
|
|
|
|
- *"message": "",
|
|
|
|
- *"data": ""
|
|
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data": ""
|
|
*}
|
|
*}
|
|
* HTTP/1.1 200 OK
|
|
* HTTP/1.1 200 OK
|
|
* @apiErrorExample {json} Error-Response:
|
|
* @apiErrorExample {json} Error-Response:
|
|
* {
|
|
* {
|
|
- *"status": false,
|
|
|
|
- *"status_code": 1000,
|
|
|
|
- *"message": "输入不正确",
|
|
|
|
- *"data": null
|
|
|
|
|
|
+ * "status": false,
|
|
|
|
+ * "status_code": 1000,
|
|
|
|
+ * "message": "输入不正确",
|
|
|
|
+ * "data": null
|
|
*}
|
|
*}
|
|
*{
|
|
*{
|
|
- *"status": false,
|
|
|
|
- *"status_code": 600,
|
|
|
|
- *"message": "保存用户数据失败",
|
|
|
|
- *"data": null
|
|
|
|
|
|
+ * "status": false,
|
|
|
|
+ * "status_code": 600,
|
|
|
|
+ * "message": "保存用户数据失败",
|
|
|
|
+ * "data": null
|
|
*}
|
|
*}
|
|
* HTTP/1.1 400 Bad Request
|
|
* HTTP/1.1 400 Bad Request
|
|
*/
|
|
*/
|
|
@@ -290,19 +291,19 @@ class MyController extends Controller
|
|
* @apiVersion 0.1.0
|
|
* @apiVersion 0.1.0
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* {
|
|
* {
|
|
- *"status": true,
|
|
|
|
- * "status_code": 0,
|
|
|
|
- * "message": "",
|
|
|
|
- * "data": {
|
|
|
|
- * "dreams": [
|
|
|
|
- *{
|
|
|
|
- *"id": 2,
|
|
|
|
- * "dream": "去旅游去旅游2",
|
|
|
|
- *"about": "欧冠胡234",
|
|
|
|
- * "dream_pic": "aaaaa",
|
|
|
|
- * "progress": 0, 进度
|
|
|
|
- * ]
|
|
|
|
- * }
|
|
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data": {
|
|
|
|
+ * "dreams": [
|
|
|
|
+ * {
|
|
|
|
+ * "id": 2,
|
|
|
|
+ * "dream": "去旅游去旅游2",
|
|
|
|
+ * "about": "欧冠胡234",
|
|
|
|
+ * "dream_pic": "aaaaa",
|
|
|
|
+ * "progress": 0, 进度
|
|
|
|
+ * ]
|
|
|
|
+ * }
|
|
* }
|
|
* }
|
|
* HTTP/1.1 200 OK
|
|
* HTTP/1.1 200 OK
|
|
* @apiErrorExample {json} Error-Response:
|
|
* @apiErrorExample {json} Error-Response:
|
|
@@ -371,18 +372,18 @@ class MyController extends Controller
|
|
* @apiVersion 0.1.0
|
|
* @apiVersion 0.1.0
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* {
|
|
* {
|
|
- * "status": true,
|
|
|
|
- *"status_code": 0,
|
|
|
|
- *"message": "",
|
|
|
|
- *"data": ""
|
|
|
|
|
|
+ * "status": true,
|
|
|
|
+ * "status_code": 0,
|
|
|
|
+ * "message": "",
|
|
|
|
+ * "data": ""
|
|
*}
|
|
*}
|
|
* HTTP/1.1 200 OK
|
|
* HTTP/1.1 200 OK
|
|
* @apiErrorExample {json} Error-Response:
|
|
* @apiErrorExample {json} Error-Response:
|
|
* {
|
|
* {
|
|
- *"status": false,
|
|
|
|
- *"status_code": 600,
|
|
|
|
- *"message": "保存用户数据失败",
|
|
|
|
- *"data": null
|
|
|
|
|
|
+ * "status": false,
|
|
|
|
+ * "status_code": 600,
|
|
|
|
+ * "message": "保存用户数据失败",
|
|
|
|
+ * "data": null
|
|
* }
|
|
* }
|
|
* HTTP/1.1 400 Bad Request
|
|
* HTTP/1.1 400 Bad Request
|
|
*/
|
|
*/
|