| xqd
@@ -166,9 +166,14 @@ class AlbumController extends Controller
|
|
|
* "status": true,
|
|
|
* "status_code": 0,
|
|
|
* "message": "",
|
|
|
- * "data": [
|
|
|
- *
|
|
|
- * ]
|
|
|
+ * "data": {
|
|
|
+ * "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImIyNGI3MzY3MDNmZDg3MGFjNTg2MWIxNDUzMDcyYjljYzFmNmJhMzE2NTAxZWVlNGYzM2M5MTIzNzFmNGYzZjg2MTY1M2YxMjE2YzE4OTFiIn0.eyJhdWQiOiI5IiwianRpIjoiYjI0YjczNjcwM2ZkODcwYWM1ODYxYjE0NTMwNzJiOWNjMWY2YmEzMTY1MDFlZWU0ZjMzYzkxMjM3MWY0ZjNmODYxNjUzZjEyMTZjMTg5MWIiLCJpYXQiOjE1NDA3OTYyMTYsIm5iZiI6MTU0MDc5NjIxNiwiZXhwIjoxNTcyMzMyMjE1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Ruihvl_HMCAHx9XDfeckz48Q_72kfG7vWDsqDrZWbrjq-yuNpM3LrUF-nlsKjedo97BwU_Apz-jnGVqr0ONKZlH-aBKDmIgM2aUZfFADsHhHNJH_oU2fMe1bOrjfUp-PJxfVWQS8c8h5RYmeqtzAYCKaD4P7OZbLmOX0YosKghpaGtiyE65s6jtrOXRhAzXAhYsZToQNBMokFVRqGih9EWuVp6EVwRtI3cb4IV6iQf08cX9DGlLLBJJzLWR5ZWgxJLAGrj5iMCWBl4JKVR8Fsy-xnx3EtrB7ODpJH6hB_u3XnUSAFuaG-KzMPLsj45iqg2hy53er2xtcfAowQFsPoAbZZu0n8c9hWt4GLemR6N1iZ3LBViv3tL5BK52pinQzAnmvltAhJP1YhfTOOjzkxcYVh2JeJagufEoxeeUarMMn21gQSFEzKFCimI7zZQxhT9leLpUn51DLD8Mu87NpYb3JN-JFbOlIDA7bDN3bNto7uuSuC4eBwPo3Ge0StuW4kjHsDTcrVF2He_8FdrPcPpGcvQsXQgv4vwlEhbL8dTlrOodum7H_tY_qUxUG1pEg6bfpn_82ej-AOSc9xi0nrhdcS9y_Z68rcwOJu8esI1pXm9TeQdZIDG85y_t74At8XN6oFcIM__6_dTne_3DHwijW-uOLupNky-5J4ILmZck",
|
|
|
+ * "user": {
|
|
|
+ * "user_id": 1,
|
|
|
+ * "is_agent": 1,
|
|
|
+ * "agent_id": 4
|
|
|
+ * }
|
|
|
+ * }
|
|
|
* }
|
|
|
* @apiErrorExample {json} Error-Response:
|
|
|
* HTTP/1.1 400 Bad Request
|
| xqd
@@ -184,9 +189,20 @@ class AlbumController extends Controller
|
|
|
public function albumXyxLogin(Request $request)
|
|
|
{
|
|
|
$datas = $request->input();
|
|
|
- //dd($datas);
|
|
|
- // print_r($datas);die;
|
|
|
+ $validator = Validator::make($request->all(),
|
|
|
+ [
|
|
|
+ 'code' => 'required',
|
|
|
+ 'store_id' => 'required'
|
|
|
+ ],[
|
|
|
+ 'code.required' => 'code不能为空!',
|
|
|
+ 'store_id.required' => '站点ID不能为空!'
|
|
|
+ ]
|
|
|
+ );
|
|
|
+ if ($validator->fails()) {
|
|
|
+ return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
|
|
|
+ }
|
|
|
$this->wechat_app = AlbumManufacturerModel::where('store_id',$datas['store_id'])->first();
|
|
|
+ if(!$this->wechat_app) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
|
|
|
$config = [
|
|
|
'app_id' => $this->wechat_app->xyx_id,
|
|
|
'secret' => $this->wechat_app->xyx_secret,
|
| xqd
@@ -197,16 +213,7 @@ class AlbumController extends Controller
|
|
|
|
|
|
|
|
|
];
|
|
|
- $validator = Validator::make($request->all(),
|
|
|
- [
|
|
|
- 'code' => 'required',
|
|
|
- ],[
|
|
|
- 'code.required' => 'code不能为空!'
|
|
|
- ]
|
|
|
- );
|
|
|
- if ($validator->fails()) {
|
|
|
- return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
|
|
|
- }
|
|
|
+
|
|
|
$app = Factory::miniProgram($config);
|
|
|
$res = $app->auth->session($datas['code']);
|
|
|
|
| xqd
@@ -219,10 +226,10 @@ class AlbumController extends Controller
|
|
|
|
|
|
$check = AlbumXyxUserModel::where('wechat_open_id',$res['openid'])->first();
|
|
|
if(!$check){
|
|
|
- $add['username'] = preg_replace('/[\xf0-\xf7].{3}/', '', $datas['nickName']);
|
|
|
+ // $add['username'] = preg_replace('/[\xf0-\xf7].{3}/', '', $datas['nickName']);
|
|
|
$add['wechat_open_id'] = $res['openid'];
|
|
|
$add['wechat_union_id'] = '';
|
|
|
- $add['avatar'] = $datas['avatar'];
|
|
|
+ //$add['avatar'] = $datas['avatar'];
|
|
|
$add['is_agent'] = 0;
|
|
|
$add['store_id'] = $datas['store_id'];
|
|
|
$res = AlbumXyxUserModel::create($add);
|
| xqd
@@ -230,8 +237,8 @@ class AlbumController extends Controller
|
|
|
$check = AlbumXyxUserModel::where('wechat_open_id',$res['openid'])->first();
|
|
|
$user = [
|
|
|
'user_id'=>$check['id'],
|
|
|
- 'avatar'=>$check['avatar'],
|
|
|
- 'username'=>$check['username'],
|
|
|
+ //'avatar'=>$check['avatar'],
|
|
|
+ // 'username'=>$check['username'],
|
|
|
'is_agent'=>0,
|
|
|
'agent_id'=>'',
|
|
|
];
|
| xqd
@@ -242,9 +249,9 @@ class AlbumController extends Controller
|
|
|
}
|
|
|
} else {
|
|
|
//print_r($check);die;
|
|
|
- $save['username'] = preg_replace('/[\xf0-\xf7].{3}/', '', $datas['nickName']);
|
|
|
- $save['avatar'] = $datas['avatar'];
|
|
|
- $res = AlbumXyxUserModel::where('wechat_open_id',$res['openid'])->update($save);
|
|
|
+ // $save['username'] = preg_replace('/[\xf0-\xf7].{3}/', '', $datas['nickName']);
|
|
|
+ // $save['avatar'] = $datas['avatar'];
|
|
|
+ //$res = AlbumXyxUserModel::where('wechat_open_id',$res['openid'])->update($save);
|
|
|
//echo 111;
|
|
|
//print_r($check);die;
|
|
|
if($check->is_agent == 1){
|
| xqd
@@ -256,23 +263,21 @@ class AlbumController extends Controller
|
|
|
$user = [
|
|
|
|
|
|
'user_id'=>$check->id,
|
|
|
- 'avatar'=>$datas['avatar'],
|
|
|
- 'username'=>$datas['nickName'],
|
|
|
+ //'avatar'=>$datas['avatar'],
|
|
|
+ //'username'=>$datas['nickName'],
|
|
|
'is_agent'=>$check->is_agent,
|
|
|
'agent_id'=>$agent_id,
|
|
|
|
|
|
];
|
|
|
|
|
|
}
|
|
|
-
|
|
|
if (Auth::loginUsingId($check->id)) {
|
|
|
$userAuth = Auth::user();
|
|
|
$save['up_agent_id'] = $request->input('agent_id');
|
|
|
- $user->save();
|
|
|
+ $userAuth->save();
|
|
|
$token = $userAuth->createToken($userAuth->id . '-' . $userAuth->openid)->accessToken;
|
|
|
- return $this->api(compact('token', 'user', 'session_key'));
|
|
|
+ return $this->api(compact('token', 'user'));
|
|
|
} else {
|
|
|
-
|
|
|
return $this->error(ErrorCode::INCORRECT_USER_OR_PASS);
|
|
|
}
|
|
|
}
|
| xqd
@@ -312,7 +317,7 @@ class AlbumController extends Controller
|
|
|
return $res;
|
|
|
}
|
|
|
/**
|
|
|
- * @api {get} api/album/goods 商品列表(goods)
|
|
|
+ * @api {get} /api/album/goods 商品列表(goods)
|
|
|
* @apiDescription 商品列表(goods)
|
|
|
* @apiGroup Album
|
|
|
* @apiPermission none
|
| xqd
@@ -321,7 +326,6 @@ class AlbumController extends Controller
|
|
|
* @apiParam {string} [keywords] 关键词.
|
|
|
* @apiParam {int} [status] 状态 1 只选择热销 2 只选择最新上市 3只选择一个风格 4 同时选择热销和最新上市 5同时选择热销和风格 6同时选择最新上市和风格 7全选 0全不选
|
|
|
* @apiParam {int} [style] 风格
|
|
|
- * @apiParam {int} [store_id] 商户id
|
|
|
* @apiSuccessExample {json} Success-Response:
|
|
|
* HTTP/1.1 200 OK
|
|
|
* {
|
| xqd
@@ -329,7 +333,17 @@ class AlbumController extends Controller
|
|
|
* "status_code": 0,
|
|
|
* "message": "",
|
|
|
* "data": {
|
|
|
- * "goods": []//分类商品
|
|
|
+ * "goods": [
|
|
|
+ * {
|
|
|
+ * "id": 3,
|
|
|
+ * "cover_pic": "http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg",
|
|
|
+ * "name": "简约",
|
|
|
+ * "style": "纯白",
|
|
|
+ * "hot_cake": 1,
|
|
|
+ * "news": 1,
|
|
|
+ * "price": ""
|
|
|
+ * }
|
|
|
+ * ],
|
|
|
* "name": 品牌名
|
|
|
* }
|
|
|
* }
|
| xqd
@@ -412,14 +426,35 @@ class AlbumController extends Controller
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiParam {int} [goods_id] 商品id
|
|
|
* @apiParam {int} [store_id] 商户id 模拟值为0
|
|
|
- * @apiParam {int} [user_id] 用户id
|
|
|
* @apiSuccessExample {json} Success-Response:
|
|
|
* HTTP/1.1 200 OK
|
|
|
* {
|
|
|
* "status": true,
|
|
|
* "status_code": 0,
|
|
|
* "message": "",
|
|
|
- * "data": []//商品详细 * 新增返回值 address 经销商地址信息 is_favorite 是否已收藏 0 否 1 是
|
|
|
+ * "data": {
|
|
|
+ * "id": 3,
|
|
|
+ * "store_id": 0,
|
|
|
+ * "cat_id": 9,
|
|
|
+ * "specifications_img": "http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg",
|
|
|
+ * "style": "纯白",
|
|
|
+ * "sort": 11,
|
|
|
+ * "cover_pic": "http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg",
|
|
|
+ * "hot_cake": 1,
|
|
|
+ * "news": 1,
|
|
|
+ * "detail": "<p>达达娃达娃达娃大青蛙大全大是大非如果v率v恶策但是许多女性的项目部的不行么法可没副本副本副本么方便</p>",
|
|
|
+ * "created_at": "2018-05-19 15:09:04",
|
|
|
+ * "updated_at": "2018-05-19 15:09:04",
|
|
|
+ * "deleted_at": null,
|
|
|
+ * "install_img": "http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg",
|
|
|
+ * "name": "简约",
|
|
|
+ * "detail_pic": ""
|
|
|
+ * "price": "",
|
|
|
+ * "mobile": "",
|
|
|
+ * "address": "",
|
|
|
+ * "is_favorite": 1,
|
|
|
+ * "favorite_id": 4
|
|
|
+ * }
|
|
|
* }
|
|
|
* @apiErrorExample {json} Error-Response:
|
|
|
* HTTP/1.1 400 Bad Request
|
| xqd
@@ -434,41 +469,40 @@ class AlbumController extends Controller
|
|
|
*/
|
|
|
public function albumGoodsDetail(Request $request)
|
|
|
{
|
|
|
- $userAuth = Auth('api')->user();
|
|
|
+ $userAuth = AlbumXyxUserModel::find(1);
|
|
|
+ // $userAuth = Auth('api')->user();
|
|
|
+ if(!$userAuth) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '未登录!');
|
|
|
$validator = Validator::make($request->all(), [
|
|
|
'goods_id' => 'required',
|
|
|
- 'user_id' => 'required',
|
|
|
],[
|
|
|
'goods_id.required'=>'缺少商品参数',
|
|
|
- 'user_id.required'=>'缺少用户参数',
|
|
|
]);
|
|
|
if ($validator->fails()) {
|
|
|
return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
|
|
|
}
|
|
|
$goods_id = request('goods_id');
|
|
|
- $agent_id = request('agent_id');
|
|
|
$store_id = request('store_id');
|
|
|
- $user_id = request('user_id');
|
|
|
$goods = AlbumProductModel::where([['id',$goods_id],['store_id',$store_id]])->first();
|
|
|
- if(!empty($goods) && $agent_id != ''){
|
|
|
+ if(!empty($goods) && $userAuth->up_agent_id != 0){
|
|
|
$price = DB::table('album_product_price')->where([['agent_id',$userAuth->up_agent_id],['store_id',$store_id],['product_id',$goods['id']]])->first();
|
|
|
if(!empty($price)){
|
|
|
$goods->price = $price->price;
|
|
|
$goods->mobile = $price->mobile;
|
|
|
- $address = AlbumAgentModel::where('id',$agent_id)->first();
|
|
|
+ $address = AlbumAgentModel::where('id',$userAuth->up_agent_id)->first();
|
|
|
$goods->address = $address;
|
|
|
}else{
|
|
|
$goods->price = '';
|
|
|
$goods->mobile = '';
|
|
|
$goods->address = '';
|
|
|
}
|
|
|
- $check_favorite = AlbumFavoriteModel::where([['user_id',$user_id],['store_id',$store_id],['product_id',$goods['id']]])->first();
|
|
|
+ $check_favorite = AlbumFavoriteModel::where([['user_id',$userAuth->id],['store_id',$store_id],['product_id',$goods['id']]])->first();
|
|
|
+ // dd($check_favorite);
|
|
|
if($check_favorite){
|
|
|
- $goods['is_favorite'] = 1;
|
|
|
- $goods['favorite_id'] = $check_favorite->id;
|
|
|
+ $goods->is_favorite = 1;
|
|
|
+ $goods->favorite_id = $check_favorite->id;
|
|
|
}else{
|
|
|
- $goods['is_favorite'] = 0;
|
|
|
- $goods['favorite_id'] = '';
|
|
|
+ $goods->is_favorite = 0;
|
|
|
+ $goods->favorite_id = '';
|
|
|
}
|
|
|
}
|
|
|
|
| xqd
@@ -482,16 +516,41 @@ class AlbumController extends Controller
|
|
|
* @apiPermission none
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiParam {int} [store_id] 商户id 模拟值为0
|
|
|
- * @apiParam {int} [user_id] 用户id
|
|
|
* @apiSuccessExample {json} Success-Response:
|
|
|
* HTTP/1.1 200 OK
|
|
|
* {
|
|
|
* "status": true,
|
|
|
* "status_code": 0,
|
|
|
* "message": "",
|
|
|
- * "data": {
|
|
|
- *
|
|
|
- * }
|
|
|
+ * "data": [
|
|
|
+ * {
|
|
|
+ * "id": 4,
|
|
|
+ * "user_id": 1,
|
|
|
+ * "deleted_at": null,
|
|
|
+ * "created_at": "2018-10-29 15:51:47",
|
|
|
+ * "updated_at": "2018-10-29 15:53:15",
|
|
|
+ * "product_id": 3,
|
|
|
+ * "store_id": 0,
|
|
|
+ * "goods": {
|
|
|
+ * "id": 3,
|
|
|
+ * "store_id": 0,
|
|
|
+ * "cat_id": 9,
|
|
|
+ * "specifications_img": "http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg",
|
|
|
+ * "style": "纯白",
|
|
|
+ * "sort": 11,
|
|
|
+ * "cover_pic": "http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg",
|
|
|
+ * "hot_cake": 1,
|
|
|
+ * "news": 1,
|
|
|
+ * "detail": "<p>达达娃达娃达娃大青蛙大全大是大非如果v率v恶策但是许多女性的项目部的不行么法可没副本副本副本么方便</p>",
|
|
|
+ * "created_at": "2018-05-19 15:09:04",
|
|
|
+ * "updated_at": "2018-05-19 15:09:04",
|
|
|
+ * "deleted_at": null,
|
|
|
+ * "install_img": "http://admin.xcx.com/upload/images/20180519/02f2dbe0e1046d7cea8b3b52d5642fb8.jpg",
|
|
|
+ * "name": "简约",
|
|
|
+ * "detail_pic": ""
|
|
|
+ * }
|
|
|
+ * }
|
|
|
+ * ]
|
|
|
* }
|
|
|
* @apiErrorExample {json} Error-Response:
|
|
|
* HTTP/1.1 400 Bad Request
|
| xqd
@@ -507,18 +566,18 @@ class AlbumController extends Controller
|
|
|
|
|
|
public function albumFavoriteList(Request $request)
|
|
|
{
|
|
|
+ $userAuth = Auth('api')->user();
|
|
|
+ if(!$userAuth) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '未登录!');
|
|
|
$validator = Validator::make($request->all(), [
|
|
|
'store_id' => 'required',
|
|
|
- 'user_id' => 'required',
|
|
|
],[
|
|
|
- 'user_id.required'=>'缺少用户参数',
|
|
|
'store_id.required'=>'缺少商户参数',
|
|
|
]);
|
|
|
if ($validator->fails()) {
|
|
|
return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
|
|
|
}
|
|
|
$data = $request->input();
|
|
|
- $favorite = AlbumFavoriteModel::where([['user_id',$data['user_id']],['store_id',$data['store_id']]])->get();
|
|
|
+ $favorite = AlbumFavoriteModel::where([['user_id',$userAuth->id],['store_id',$data['store_id']]])->get();
|
|
|
foreach ($favorite as $key=>$val) {
|
|
|
$favorite[$key]['goods'] = AlbumProductModel::where([['id',$val['product_id']],['store_id',$data['store_id']]])->first();
|
|
|
}
|
| xqd
@@ -578,7 +637,6 @@ class AlbumController extends Controller
|
|
|
* @apiPermission none
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiParam {int} [store_id] 商户id 模拟值为0
|
|
|
- * @apiParam {int} [user_id] 用户id
|
|
|
* @apiParam {int} [favorite_id] 收藏id
|
|
|
* @apiSuccessExample {json} Success-Response:
|
|
|
* HTTP/1.1 200 OK
|
| xqd
@@ -602,12 +660,13 @@ class AlbumController extends Controller
|
|
|
|
|
|
public function albumFavoriteDel(Request $request)
|
|
|
{
|
|
|
+ //$userAuth = AlbumXyxUserModel::find(1);
|
|
|
+ $userAuth = Auth('api')->user();
|
|
|
+ if(!$userAuth) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '未登录!');
|
|
|
$validator = Validator::make($request->all(), [
|
|
|
'store_id' => 'required',
|
|
|
- 'user_id' => 'required',
|
|
|
'favorite_id' => 'required',
|
|
|
],[
|
|
|
- 'user_id.required'=>'缺少用户参数',
|
|
|
'store_id.required'=>'缺少商户参数',
|
|
|
'favorite_id.required'=>'缺少收藏参数',
|
|
|
]);
|
| xqd
@@ -645,7 +704,6 @@ class AlbumController extends Controller
|
|
|
* @apiPermission none
|
|
|
* @apiVersion 0.1.0
|
|
|
* @apiParam {int} [store_id] 商户id
|
|
|
- * @apiParam {int} [user_id] 用户id
|
|
|
* @apiParam {int} [product_id] 商品id
|
|
|
* @apiSuccessExample {json} Success-Response:
|
|
|
* HTTP/1.1 200 OK
|
| xqd
@@ -669,12 +727,12 @@ class AlbumController extends Controller
|
|
|
|
|
|
public function albumAddFavorite(Request $request)
|
|
|
{
|
|
|
+ $userAuth = Auth('api')->user();
|
|
|
+ if(!$userAuth) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '未登录!');
|
|
|
$validator = Validator::make($request->all(), [
|
|
|
'store_id' => 'required',
|
|
|
- 'user_id' => 'required',
|
|
|
'product_id' => 'required',
|
|
|
],[
|
|
|
- 'user_id.required'=>'缺少用户参数',
|
|
|
'store_id.required'=>'缺少商户参数',
|
|
|
'product_id.required'=>'缺少商品参数',
|
|
|
]);
|
| xqd
@@ -682,14 +740,16 @@ class AlbumController extends Controller
|
|
|
return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
|
|
|
}
|
|
|
$data = $request->input();
|
|
|
- $check_user = AlbumXyxUserModel::find($data['user_id']);
|
|
|
- if(!$check_user){
|
|
|
+ $check_user = AlbumXyxUserModel::find($userAuth->id);
|
|
|
+ $check_f = AlbumFavoriteModel::where([['user_id',$userAuth->id],['product_id',$data['product_id']]])->first();
|
|
|
+ if(!$check_user||$check_f){
|
|
|
$d = [
|
|
|
'code' =>1,
|
|
|
- 'msg' =>'该用户不存在',
|
|
|
+ 'msg' =>'该用户不存在或者已添加',
|
|
|
];
|
|
|
return $this->api($d);
|
|
|
}
|
|
|
+ $data['user_id'] = $userAuth->id;
|
|
|
$res = AlbumFavoriteModel::create($data);
|
|
|
if($res){
|
|
|
$d = [
|
| xqd
@@ -718,7 +778,20 @@ class AlbumController extends Controller
|
|
|
* "status": true,
|
|
|
* "status_code": 0,
|
|
|
* "message": "",
|
|
|
- * "data": []//分类
|
|
|
+ * "data": [
|
|
|
+ * {
|
|
|
+ * "id": 9,
|
|
|
+ * "name": "圣地亚哥",
|
|
|
+ * "parent_id": 0,
|
|
|
+ * "level": "00",
|
|
|
+ * "pic_url": "http://admin.xcx.com/upload/images/20180518/af6cc8fd71241744ccd638afc6ac25f2.png",
|
|
|
+ * "created_at": "2018-05-19 14:55:48",
|
|
|
+ * "updated_at": "2018-05-19 14:55:48",
|
|
|
+ * "store_id": 0,
|
|
|
+ * "deleted_at": null,
|
|
|
+ * "sort": 0
|
|
|
+ * }
|
|
|
+ * ]
|
|
|
* }
|
|
|
* @apiErrorExample {json} Error-Response:
|
|
|
* HTTP/1.1 400 Bad Request
|
| xqd
@@ -760,7 +833,16 @@ class AlbumController extends Controller
|
|
|
* "status": true,
|
|
|
* "status_code": 0,
|
|
|
* "message": "",
|
|
|
- * "data": []//属性
|
|
|
+ * "data": [
|
|
|
+ * {
|
|
|
+ * "id": 2,
|
|
|
+ * "name": "1111",
|
|
|
+ * "deleted_at": null,
|
|
|
+ * "created_at": "2018-06-05 17:35:08",
|
|
|
+ * "updated_at": "2018-06-05 17:35:08",
|
|
|
+ * "store_id": 0
|
|
|
+ * }
|
|
|
+ * ]
|
|
|
* }
|
|
|
* @apiErrorExample {json} Error-Response:
|
|
|
* HTTP/1.1 400 Bad Request
|