12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- // +----------------------------------------------------------------------
- // | Niucloud-mall 企业快速开发的多应用管理平台
- // +----------------------------------------------------------------------
- // | 官方网址:https://www.niucloud.com
- // +----------------------------------------------------------------------
- // | niucloud团队 版权所有 开源版本可自由商用
- // +----------------------------------------------------------------------
- // | Author: Niucloud Team
- // +----------------------------------------------------------------------
- use app\api\middleware\ApiChannel;
- use app\api\middleware\ApiCheckToken;
- use app\api\middleware\ApiLog;
- use think\facade\Route;
- /**
- * 商城系统
- */
- Route::group('shop/web', function() {
- /***************************************************** 店铺列表 ****************************************************/
- // 店铺列表
- Route::get('shop', 'shop.Shop/lists');
- // 甄选好店列表(web端)
- Route::get('select_shop_list', 'shop.Shop/selectShopLists');
- // 店铺列表(wap端)
- Route::get('shop_list', 'shop.Shop/shopLists');
- // 店铺列表
- Route::get('shop/all', 'shop.Shop/all');
- // 店铺分类
- Route::get('shop_category', 'shop.ShopCategory/all');
- // 店铺详情
- Route::get('shop/:id', 'shop.Shop/info');
- // 品牌好店组件
- Route::get('shop/component', 'shop.Shop/components');
- // 店铺二维码
- Route::get('shop/qrcode/:id', 'shop.Shop/qrcode');
- // 店铺申请状态
- Route::get('shop_apply/status', 'shop.ShopApply/statusList');
- /***************************************************** 店铺转账 ****************************************************/
- // 店铺提现详情
- Route::get('cash_out/:id', 'shop.ShopCashOut/info');
- // 转账校验
- Route::get('cash_out/transfer/check', 'shop.ShopCashOut/checkTransfer');
- })->middleware(ApiChannel::class)
- ->middleware(ApiCheckToken::class)//false表示不验证登录
- ->middleware(ApiLog::class);
- Route::group('shop/web', function() {
- /***************************************************** 店铺申请 ****************************************************/
- // 店铺申请列表
- Route::get('shop_apply', 'shop.ShopApply/lists');
- // 店铺申请
- Route::post('shop_apply', 'shop.ShopApply/add');
- // 店铺申请详情
- Route::get('shop_apply/:id', 'shop.ShopApply/info');
- // 店铺申请编辑
- Route::put('shop_apply/:id', 'shop.ShopApply/edit');
- // 店铺分类列表
- Route::get('shop_apply/shop_category', 'shop.ShopApply/shopCategory');
- // 店铺套餐列表
- Route::get('shop_apply/site_group', 'shop.ShopApply/shopSiteGroup');
- // 店铺申请协议
- Route::get('shop_apply/agreement', 'shop.ShopApply/agreement');
- /***************************************************** 店铺收藏 ****************************************************/
- // 店铺收藏
- Route::put('shop/:id/:is_follow', 'shop.Shop/follow');
- // 店铺收藏列表
- Route::get('follow', 'shop.ShopMember/lists');
- /***************************************************** 店铺转账 ****************************************************/
- // 转账
- Route::post('cash_out/transfer/:id', 'shop.ShopCashOut/transfer');
- })->middleware(ApiChannel::class)
- ->middleware(ApiCheckToken::class, true)//表示验证登录
- ->middleware(ApiLog::class);
|