143 lines
8.3 KiB
PHP
Executable File
143 lines
8.3 KiB
PHP
Executable File
<?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(['log', 'app', 'api'])
|
|
->prefix('seller')
|
|
->namespace('\App\Http\Controllers\Api\Seller')
|
|
->group(function () {
|
|
|
|
Route::get('wechat/authorize_base', 'WechatController@authorizeBase');
|
|
Route::post('wechat/bind_seller', 'WechatController@bindSeller');
|
|
Route::any('wechat/unauthorize_base', 'WechatController@unauthorizeBase');
|
|
|
|
Route::get('app/version_info', 'AppController@versionInfo');
|
|
|
|
Route::post('register', 'IndexController@register');
|
|
Route::post('login', 'IndexController@login');
|
|
|
|
Route::middleware('api.seller_authed')->group(function () {
|
|
Route::any('logout', 'IndexController@logout');
|
|
Route::post('refresh_token', 'IndexController@refreshToken');
|
|
|
|
Route::get('lottery', 'LotteryController@index');
|
|
Route::get('lottery/types', 'LotteryController@types');
|
|
Route::get('lottery/config_list', 'LotteryController@configList');
|
|
Route::get('lottery/config', 'LotteryController@configShow');
|
|
Route::post('lottery/config', 'LotteryController@configStore');
|
|
|
|
Route::post('material/upload', 'MaterialController@upload');
|
|
Route::post('material/upload_other', 'MaterialController@uploadOther');
|
|
|
|
Route::get('order/list', 'OrderController@list');
|
|
Route::get('order/show', 'OrderController@show');
|
|
Route::get('order/union_users', 'OrderController@unionUsers');
|
|
Route::get('order/piao_show', 'OrderController@piaoShow');
|
|
Route::post('order/receive', 'OrderController@receive');
|
|
Route::post('order/throw_cooperate', 'OrderController@throwCooperate');
|
|
Route::post('order/revoke', 'OrderController@revoke');
|
|
Route::post('order/draw', 'OrderController@draw');
|
|
Route::post('order/take_ticket', 'OrderController@takeTicket');
|
|
Route::post('order/send_prize', 'OrderController@sendPrize');
|
|
Route::get('order/search_filter', 'OrderController@searchFilter');
|
|
Route::get('order/search', 'OrderController@search');
|
|
Route::get('order/win_list', 'OrderController@winList');
|
|
Route::get('order/send_list', 'OrderController@sendList');
|
|
Route::post('order/upload_piao', 'OrderController@uploadPiao');
|
|
|
|
Route::get('customer/list', 'CustomerController@list');
|
|
Route::get('customer/show', 'CustomerController@show');
|
|
Route::post('customer/update', 'CustomerController@update');
|
|
Route::post('customer/reset_password', 'CustomerController@resetPassword');
|
|
Route::post('customer/reset_pay_password', 'CustomerController@resetPayPassword');
|
|
Route::get('customer/bills', 'CustomerController@bills');
|
|
Route::post('customer/balance_incr', 'CustomerController@balanceIncr');
|
|
Route::post('customer/balance_reduce', 'CustomerController@balanceReduce');
|
|
Route::get('customer/withdraw_list', 'CustomerController@withdrawList');
|
|
Route::get('customer/withdraw_show', 'CustomerController@withdrawShow');
|
|
Route::post('customer/withdraw_audit', 'CustomerController@withdrawAudit');
|
|
Route::post('customer/recharge', 'CustomerController@recharge');
|
|
Route::get('customer/bets_record', 'CustomerController@betsRecord');
|
|
|
|
|
|
Route::get('seller/info', 'SellerController@info');
|
|
Route::post('seller/change_info', 'SellerController@changeInfo');
|
|
Route::post('seller/change_password', 'SellerController@changePassword');
|
|
Route::post('seller/change_pay_password', 'SellerController@changePayPassword');
|
|
Route::post('seller/upload', 'SellerController@upload');
|
|
Route::post('seller/store', 'SellerController@store');
|
|
Route::get('seller/list', 'SellerController@list');
|
|
Route::post('seller/update', 'SellerController@update');
|
|
Route::post('seller/delete', 'SellerController@delete');
|
|
Route::post('seller/feedback', 'SellerController@feedback');
|
|
Route::post('seller/real_verify', 'SellerController@realVerify');
|
|
|
|
Route::get('wallet/pay_types', 'WalletController@payTypes');
|
|
Route::post('wallet/recharge', 'WalletController@recharge');
|
|
Route::post('wallet/redirect_pay', 'WalletController@redirectPay');
|
|
Route::get('wallet/recharge_query', 'WalletController@rechargeQuery');
|
|
Route::post('wallet/withdraw_money', 'WalletController@withdrawMoney');
|
|
Route::get('wallet/withdraw_list', 'WalletController@withdrawList');
|
|
Route::get('wallet/bills', 'WalletController@bills');
|
|
|
|
Route::get('report/dashboard', 'ReportController@dashboard');
|
|
Route::get('report/chupiao', 'ReportController@chupiao');
|
|
Route::get('report/paijiang', 'ReportController@paijiang');
|
|
Route::get('report/win_list', 'ReportController@winList');
|
|
Route::get('report/order_list', 'ReportController@orderList');
|
|
Route::get('report/agent', 'ReportController@agent');
|
|
Route::get('report/agent_regist', 'ReportController@agentRegist');
|
|
Route::get('report/agent_order', 'ReportController@agentOrder');
|
|
Route::get('report/customer_bills', 'ReportController@customerBills');
|
|
Route::get('report/customer_recharge', 'ReportController@customerRecharge');
|
|
Route::get('report/shop_bills', 'ReportController@shopBills');
|
|
Route::get('report/shop_coop_bills', 'ReportController@shopCoopBills');
|
|
Route::get('report/shop_coop_brokerage', 'ReportController@shopCoopBrokerage');
|
|
Route::get('report/registers', 'ReportController@registers');
|
|
Route::get('report/buyers', 'ReportController@buyers');
|
|
|
|
Route::get('shop/certify_get', 'ShopController@certifyGet');
|
|
Route::post('shop/certify_apply', 'ShopController@certifyApply');
|
|
Route::post('shop/setting', 'ShopController@setting');
|
|
Route::get('shop/pay_channel_list', 'ShopController@payChannelList');
|
|
Route::post('shop/pay_channel', 'ShopController@payChannelStore');
|
|
Route::post('shop/pay_channel_update', 'ShopController@payChannelUpdate');
|
|
Route::get('shop/pay_channel', 'ShopController@payChannelShow');
|
|
|
|
Route::get('area/tree', 'AreaController@tree');
|
|
Route::get('area/province', 'AreaController@province');
|
|
Route::get('area/city', 'AreaController@city');
|
|
Route::get('area/area', 'AreaController@area');
|
|
|
|
Route::post('cooperate/apply', 'CooperateController@apply');
|
|
Route::get('cooperate/entrust_list', 'CooperateController@entrustList');
|
|
Route::get('cooperate/entrusted_list', 'CooperateController@entrustedList');
|
|
Route::post('cooperate/audit', 'CooperateController@audit');
|
|
Route::post('cooperate/lottery_apply', 'CooperateController@lotteryApply');
|
|
Route::post('cooperate/lottery_update', 'CooperateController@lotteryUpdate');
|
|
Route::post('cooperate/lottery_unbind', 'CooperateController@lotteryUnbind');
|
|
Route::post('cooperate/lottery_audit', 'CooperateController@lotteryAudit');
|
|
Route::get('cooperate/entrust_lottery_list', 'CooperateController@entrustLotteryList');
|
|
Route::get('cooperate/entrusted_lottery_list', 'CooperateController@entrustedLotteryList');
|
|
Route::post('cooperate/balance_incr', 'CooperateController@balanceIncr');
|
|
Route::post('cooperate/balance_reduce', 'CooperateController@balanceReduce');
|
|
Route::get('cooperate/lotteries', 'CooperateController@lotteries');
|
|
Route::get('cooperate/bills', 'CooperateController@bills');
|
|
|
|
Route::get('agent/shop_flow', 'AgentController@shopFlow');
|
|
});
|
|
});
|
|
|