123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Route;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- Route::middleware('auth:api')->get('/user', function (Request $request) {
- return $request->user();
- });
- //生成swagger.json文件
- Route::get("/swagger","BaseController@swagger");
- //读取swagger内容
- Route::get("/loadswagger","BaseController@loadSwagger");
- //测试
- Route::get("/test","BaseController@test");
- //校验微信服务器
- Route::any("/checkServer/{code}","WechatController@checkServer");
- //设置微信菜单
- Route::get("/wechat/setmenu","WechatController@setMenu");
- //获取微信
- Route::get("/wechat/account/config","WechatController@accountConfig");
- //微信公众号授权回调
- Route::any("wechat/account/callback","WechatController@accountCallback");
- //定时任务
- Route::prefix("cron")->namespace("Cron")->group(function (){
- //获取美团订单
- Route::get("meituan/orders","CronController@meituanOrders");
- //获取聚推客订单
- Route::get("jutuike/orders","CronController@jutuikeOrders");
- //获取拼多多订单
- Route::get("pdd/orders","CronController@pddOrders");
- //下单提醒
- Route::get("send/order/template","CronController@sendOrderTemplate");
- //定时结算佣金
- Route::get("settlement/order","CronController@settlementOrderCommission");
- });
- //用户管理
- Route::prefix("user")->namespace("User")->middleware(["checkAuth"])->group(function (){
- //获取用户信息接口
- Route::get("info","UserController@getUserInfo");
- //获取用户粉丝
- Route::get("fans/list","UserController@getFansList");
- //收支明细列表
- Route::get("fianance/list","UserController@getFinanceList");
- //流水详情
- Route::get("fianance/detail","UserController@getFinanceDetail");
- //用户提现
- Route::post("cash","UserController@getCash");
- //获取用户推广二维码
- Route::get("recommend/url","UserController@getRecommendUrl");
- });
- //订单管理
- Route::prefix("order")->namespace("Order")->middleware(["checkAuth"])->group(function (){
- //获取订单列表接口
- Route::get("list","OrderController@getOrderList");
- //获取订单类型接口
- Route::get("type/list","OrderController@getOrderTypeList");
- //订单详情接口
- Route::get("detail","OrderController@getOrderDetail");
- });
- //首页省钱
- Route::prefix("home")->namespace("Home")->middleware(["checkAuth"])->group(function (){
- //获取省钱列表接口
- Route::get("list","HomeController@getHomeList");
- //返钱赚钱接口
- Route::get("commission/list","HomeController@getCommissionList");
- });
- //拼多多导购相关接口
- Route::prefix("pdd")->namespace("Pdd")->middleware(["checkAuth"])->group(function (){
- //获取商品类目接口
- Route::get("cate/list","PddController@getCateList");
- //商品列表
- Route::get("goods/list","PddController@getGoodsList");
- //获取商品推广链接
- Route::get("goods/recommendurl","PddController@getGoodsRecommendUrl");
- });
- //电商相关接口
- Route::prefix("buy")->namespace("Buy")->middleware(["checkAuth"])->group(function (){
- });
|