123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | 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!
- |
- */
- /** @var TYPE_NAME $api */
- $api = app('Dingo\Api\Routing\Router');
- $api->version('v1',[
- 'namespace'=>'App\Http\Controllers'
- ],function ($api){
- /*----------------登录相关---------------*/
- $api->get('/login/judge_login','LoginController@judge_login');
- $api->get('/wechat_mess','UserController@wechat_mess');
- $api->any('/login/login','LoginController@login');
- $api->get('/set_login','LoginController@setUserInfo');
- $api->get('/login/wechat_login','LoginController@wechat_login');
- $api->get('/login/register','LoginController@register');
- $api->get('user/submit_user','UserController@submit_user');
- $api->get('/login/get_user_openid','LoginController@wxLogin');
- $api->get('/enid','LoginController@enid');
- //产品详情
- $api->get('/detail/index','DetailController@index');
- $api->get('AddQrCode','IndexController@AddQrCode');//文章列表
- $api->get('AddQrCodes','IndexController@AddQrCodes');//文章列表
- $api->get('/GetNewUserDetail','TeamController@GetNewUserDetail');
- $api->group(['middleware' => 'jwt.auth'], function($api) {
- /*--------------------个人信息开始-------------------*/
- $api->get('user/getinfo','UserController@getinfo');
- $api->get('user/per_data','UserController@per_data');
- $api->get('user/confirm_level','UserController@confirm_level');
- $api->get('user/user_cert','AuditController@user_cert');
- /*----------------授权书相关------------*/
- $api->get('/user/auth_code','UserController@auth_code');
- $api->post('/user/auth_share','UserController@auth_share');
- /*-----------------换绑手机号-----------*/
- $api->get('user/send_code','UserController@send_code');
- $api->get('user/change_num','UserController@change_num');
- /*-----------------地址管理------------*/
- $api->get('user/show_address','UserController@show_address');
- $api->post('user/add_address','UserController@add_address');
- $api->get('user/search_address','UserController@search_address');
- $api->get('user/del_address','UserController@del_address');
- $api->post('user/update_address','UserController@update_address');
- $api->post('user/update_nickname','UserController@update_nickname');
- $api->post('user/update_phone','UserController@update_phone');
- $api->post('user/update_qr_code','UserController@update_qr_code');
- $api->post('user/upload_img','UserController@uploadImg');
- $api->get('user/auth_info','UserController@authInfo');
- /*--------------------个人信息结束-------------------*/
- //消息公告
- $api->get('index/get_message_info','IndexController@getMessageInfo');
- /**------------邀请相关-----------***/
- // $api->get('user/audit','AuditController@recom_sure');
- $api->get('team/examine','AuditController@recom_audit');
- $api->get('team/examine_list','AuditController@recom_sure_record');//注册审核列表
- // $api->get('user/recom_audit_record','AuditController@recom_sure_record');
- // $api->get('user/agent_audit','AuditController@agent_audit');
- // $api->get('user/agent_audit_show','AuditController@agent_sure_show');
- // $api->get('user/agent_audit_record','AuditController@agent_sure_record');
- $api->post('store/set_agree','StoreController@setAgree');
- $api->post('store/share_store','StoreController@shareStore');
- $api->post('store/upload_cert_img','StoreController@uploadCertImg');
- $api->post('store/upload_face_img','StoreController@uploadFaceImg');
- $api->get('store/get_store_info','StoreController@getStoreInfo');
- $api->get('store/get_agent_info','StoreController@getAgentInfo');
- $api->post('store/edit_store_info','StoreController@editStoreInfo');
- $api->post('store/upload_store_img','StoreController@uploadStoreImg');
- $api->post('store/cert_store','StoreController@certStore');
- $api->get('store/get_user_data_info','StoreController@getUserDataInfo');
- $api->get('store/get_user_info','StoreController@getUserInfo');
- $api->get('store/get_all_address','StoreController@getAllAddress');
- $api->get('store/get_address','StoreController@getAddress');
- $api->post('store/add_address','StoreController@addAddress');
- $api->post('store/update_address','StoreController@updateAddress');
- $api->post('store/destroy_address','StoreController@destroyAddress');
- $api->post('store/set_default_address','StoreController@setDefaultAddress');
- $api->post('store/submit_order_info','StoreController@submitOrderInfo');
- $api->get('store/get_order_list','StoreController@getOrderList');
- $api->get('store/get_order_info','StoreController@getOrderInfo');
- $api->get('store/get_order_no_info','StoreController@getOrderNoInfo');
- $api->post('store/add_comment','StoreController@addComment');
- $api->get('store/get_comment','StoreController@getComment');
- $api->get('store/get_express_code','StoreController@getExpressCode');
- $api->post('store/add_order_express_no','StoreController@addOrderExpressNo');
- $api->get('store/get_order_express','StoreController@getOrderExpress');
- $api->get('store/get_more_buy','StoreController@getMoreBuy');
- $api->get('store/get_more_scan','StoreController@getMoreScan');
- $api->get('store/send_sms','StoreController@sendSms');
- $api->post('store/edit_sms','StoreController@editSms');
- $api->post('store/check_sms','StoreController@checkSms');
- $api->post('store/one_self_take','StoreController@oneSelfTake');
- $api->get('store_goods/get_goods_taps','StoreGoodsController@getGoodsTaps');
- $api->get('store_goods/get_goods_list','StoreGoodsController@getGoodsList');
- $api->get('store_goods/share_goods','StoreGoodsController@shareGoods');
- $api->get('store_goods/get_store_user','StoreGoodsController@getStoreUser');
- $api->post('payment/pay','PaymentController@pay');
- $api->post('payment/set_bank_info','MiniSubController@setBankInfo');
- $api->get('payment/get_bank_info','MiniSubController@getBankInfo');
- /*-------团队--------*/
- $api->get('team/card_data','TeamController@card_data');
- $api->get('team/new_per','TeamController@new_per');
- $api->get('team/list','TeamController@level_count');
- $api->get('team/add_list','TeamController@add_list');
- $api->get('team/GetNewUserDetail','TeamController@GetNewUserDetail');
- $api->get('team/money','TeamController@money');
- $api->get('team/invite','TeamController@invite');
- $api->get('team/invite_code','TeamController@invite_code');
- $api->group(['prefix'=>'team'],function ($api){
- $api->get('GetUserTeamList','TeamController@GetUserTeamList');
- $api->get('GetUserTeamLevelDetail','TeamController@GetUserTeamLevelDetail');
- $api->get('GetTeamList','TeamController@GetTeamList');
- });
- /**
- * 商品
- */
- $api->get('/goods/list','GoodsController@goods_list');
- $api->get('/goods/detail','GoodsController@goods_detail');
- $api->get('app/chart','BasicController@charts');
- $api->get('app/index','BasicController@index');
- $api->get('app/message','BasicController@message');
- $api->get('app/message_read','BasicController@message_read');
- $api->get('app/updata','BasicController@version');
- /*
- * 订单相关
- * */
- $api->post('order/submit_order','OrderController@submit_order');//提交
- $api->get('order/order_complete','OrderController@order_complete');//收货
- $api->get('order/order_sure_pay','OrderController@order_sure_pay');//收款
- $api->get('order/order_del','OrderController@order_del');//删除
- $api->get('order/detail','OrderController@order_detail');//订单详情
- $api->get('order/my_order','OrderController@my_order');//我的订单
- $api->get('order/order_lower','OrderController@order_lower');//我的订单
- $api->get('order/order_turn','OrderController@order_turn');//转单订单
- $api->post('order/forward','OrderController@turn_order');//转单订单
- $api->get('inventory/record','OrderController@single_record');//转单订单
- /**----财富相关------**/
- $api->get('income/income','TreasureController@income');
- $api->get('income/detail','TreasureController@detail');
- /**----APP相关-----**/
- $api->get('app/feedback','BasicController@question');
- // $api->get('/index','IndexController@index');
- $api->get('article/show_list','ArticleController@show_list');
- $api->get('article/show_detail','ArticleController@show_detail');
- $api->get('article/like','ArticleController@like');
- $api->get('article/collection','ArticleController@collection');
- $api->get('article/mycollection','ArticleController@mycollection');
- $api->post('/user/update_pass','UserController@update_pass');
- $api->post('/submit_order','OrdertestController@submit_order');//提交订单
- $api->get('/order/get_gift','OrdertestController@get_data');//获取赠品信息
- $api->get('/order/sure_order','OrdertestController@sure_order');//提交订单
- $api->get('/order_detail','OrdertestController@order_detail');//订单详情
- $api->get('/order_list','OrdertestController@order_list');//订单列表
- $api->get('/get_log','OrdertestController@get_log');//订单操作日志
- $api->get('/pay_order','OrdertestController@pay_order');//订单支付
- $api->get('/destory','OrdertestController@destory');//订单修改和作废
- $api->get('/user/user_pay_log','PayController@user_pay_log');//账户金额日志
- $api->get('/order/get_gift_info','OrdertestController@get_gift');//获取订单赠品信息
- $api->get('/order/get_order_expresses','OrdertestController@get_order_expresses');//订单物流
- $api->get('/order/get_express','OrdertestController@get_express');//订单物流
- $api->get('/order/order_data','OrdertestController@order_data');//订单统计
- $api->get('/order/search_order','OrdertestController@search_order');//订单统计
- $api->get('/inventory/get_user','OrdertestController@get_user');//订单统计
- $api->get('/order/ApplyDestoryOrder','OrdertestController@ApplyDestoryOrder');//订单统计
- $api->get('/order/CancleDestoryOrder','OrdertestController@CancleDestoryOrder');//订单统计
- $api->get('/logout','UserController@logout');
- /**礼品统计**/
- $api->get('order/type_count','OrdertestController@type_count');//下级信息礼品详情
- $api->post('order/type_submit','OrdertestController@type_submit');//礼品提交
- $api->get('get_activity','OrdertestController@get_activity');//获取活动时间
- $api->get('get_activity_list','OrdertestController@get_activity_list');//获取活动时间
- $api->get('GetUserHonor','OrdertestController@GetUserHonor');//获取活动时间
- $api->get('order/GetOrderDetail','OrdertestController@GetOrderDetail');//获取活动时间
- $api->group(['prefix'=>'order'], function ($api){
- $api->get('look_good','StorageController@look_good');
- $api->get('good_detail','StorageController@good_detail');
- });
- $api->group(['prefix'=>'studioGood'],function ($api){
- $api->get('good_show','StudioGoodController@good_show');
- });
- $api->group(['prefix'=>'studioOrder'],function ($api){
- $api->post('submit_order','StudioOrderController@submit_order');
- $api->get('studio_record','StudioOrderController@studio_record');
- $api->get('order_detail','StudioOrderController@order_detail');
- $api->get('look_good','StudioOrderController@look_good');
- $api->get('good_detail','StudioOrderController@good_detail');
- $api->get('/get_express','StudioOrderController@get_express');//订单物流
- });
- $api->group(['prefix'=>'studio'],function ($api){
- $api->get('studioBonus','StudioOrderController@studioBonus');
- });
- $api->group(['prefix'=>'article'],function ($api){
- $api->get('GetArticleGroup','ArticleController@GetArticleGroup');//文章分组
- $api->get('GetRecomArticle','ArticleController@GetRecomArticle');//推荐文章
- $api->get('GetArticleDetail','ArticleController@GetArticleDetail');//文章详情
- $api->get('GetArticleList','ArticleController@GetArticleList');//文章列表
- });
- $api->group(['prefix'=>'user'],function ($api){
- $api->get('GetFillStatus','UserController@GetFillStatus');
- $api->post('ValiInfo','UserController@ValiInfo');
- });
- $api->group(['prefix'=>'storage'], function ($api){
- /**我的***/
- $api->get('my_storage','StorageController@my_storage');
- /**库存详情***/
- $api->get('storage_detail','StorageController@storage_detail');
- /***待入库***/
- $api->get('put_storage','StorageController@put_storage');
- /**入库操作**/
- $api->get('put_good_storage','StorageController@put_good_storage');
- /**入库记录详情(出库记录、盘库记录)**/
- $api->get('put_storage_detail','StorageController@put_storage_detail');
- /**入库记录分组**/
- $api->get('put_storage_group','StorageController@put_storage_group');
- /*获取商品图片**/
- $api->get('get_goodimg','StorageController@get_goodimg');
- /**一次性盘库**/
- $api->post('one_sure_storage','StorageController@one_sure_storage');
- /**获取库存**/
- $api->get('get_storage','StorageController@get_storage');
- /**盘库**/
- $api->post('sure_storage','StorageController@sure_storage');
- /**出库**/
- $api->post('out_storage','StorageController@out_storage');
- $api->get('sure_storage_group','StorageController@sure_storage_group');//盘库记录的分组
- $api->get('sure_storage_detail','StorageController@sure_storage_detail');//盘库记录的详情
- $api->get('put_storage_groups','StorageController@put_storage_groups');//入库记录的分组
- $api->get('put_storage_details','StorageController@put_storage_details');//入库记录的详情
- $api->post('put_storages','StorageController@put_storages');//入库的详情
- $api->get('get_group','StorageController@get_group');//货物相亲
- $api->get('get_detail','StorageController@get_detail');
- });
- $api->group(['prefix'=>'miniSub'], function ($api){
- /**小商户进件***/
- $api->post('apply_wx','MiniSubController@apply_wx');
- /**获取平台证书***/
- $api->get('getzhengshu','MiniSubController@getzhengshu');
- /**查看进件状态***/
- $api->get('query','MiniSubController@query');
- $api->post('uploadmedia','MiniSubController@uploadmedia');
- $api->post('upload_img','MiniSubController@uploadImg');
- });
- $api->group(['prefix'=>'UserSend'],function($api){
- /**货物扫码权限**/
- $api->get('get_arr','UserGoodSendController@get_arr');//new
- /**获取下级信息**/
- $api->get('get_lower_user','UserGoodSendController@get_lower_user');//new
- /**退货操作**/
- $api->get('user_return_good','UserGoodSendController@user_return_good');//new
- /**发货时的信息查询**/
- $api->get('select_send_user','UserGoodSendController@select_send_user');//new
- /**退款的信息查询*/
- $api->get('select_return_user','UserGoodSendController@select_return_user');//new
- /***零售**/
- $api->get('sell','UserGoodSendController@sell');//new
- //批量发货
- $api->post('AllSendGood','UserGoodSendController@AllSendGood');//new
- /**代理扫码信息**/
- $api->get('user_send_good','UserGoodSendController@user_send_good');//new
- });
- });
- $api->post('payment/notify','PaymentController@notify');
- $api->get('/good_show','GoodtestController@good_show');//商品列表
- $api->get('/again_order','GoodtestController@again_order');//商品列表
- $api->get('/json','IndexController@json');
- $api->get('/index','IndexController@index');
- // $api->get('/index',function(){
- // return '123123aa';
- // });
- // $api->get('/test','IndexController@test');
- $api->get('/ress','UserController@ress');
- $api->get('/show','OrderController@show_index');
- $api->get('/order/order_rank','OrdertestController@order_rank');
- /*
- * 活动
- * */
- $api->get('order/order_notpay','OrderController@order_notpay');
- $api->get('order/submit_orders','OrdertestController@submit_orders');
- /*
- * 商品
- * */
- $api->get('article/show_article','ArticleController@index');
- $api->get('/user/auth_sel','UserController@auth_sel');
- $api->get('/user/auth_show','UserController@auth_show');
- $api->get('/wechat/wechat_data','BasicController@wechat_data');
- $api->get('/wechat/wechat','BasicController@wechat');
- $api->get('/wechat/return_code','BasicController@return_code');
- // $api->get('inventory/detail','GoodSkuTotalController@total_sur');
- $api->get('order/my_storage','GoodSkuTotalController@total_sur');//库存
- $api->get('system','BasicController@system');
- $api->get('send_code','LoginController@send_code');
- $api->get('/proxy/updata','ActiveController@active');//代理升级
- $api->get('/CreateTokenTest','UserController@CreateTokenTest');
- $api->get('gzh','UserController@gzh');
- $api->get('agent','UserController@agent');
- $api->get('test/{any}','UserController@test');
- $api->get('test','UserController@test');
- $api->get('test/{any}/{name}','UserController@test');
- $api->get('test/{any}/{name}/{all}','UserController@test');
- $api->get('test/{any}/{name}/{all}/{alll}','UserController@test');
- $api->get('gzh/{nickname}/{mobile}/{code}',function (){
- return '<script>alert("当前链接失效,请联系邀请人重新分享二维码")</script>';
- });
- $api->get('gzh/{nickname}/{mobile}/{code}/{time}',function (){
- return '<script>alert("当前二维码失效,请联系邀请人重新分享二维码")</script>';
- });
- $api->get('gzh/{nickname}','UserController@gzh');
- $api->get('select','UserController@auth_select');
- $api->any('/user/login','LoginController@login');
- $api->get('/index/login','IndexController@login');
- $api->get('/indes','IndexController@indes');
- $api->get('/user/token','BasicController@token');
- $api->get('user/get_user_re','BasicController@get_user_re');
- $api->post('/index/info','IndexController@info');
- $api->get('/index/get_index','IndexController@get_index');
- $api->get('/index/GetUser','IndexController@GetUser');
- $api->get('/get_address','UserController@get_address');
- $api->get('/get_data','OrdertestController@get_data');//获取订单赠品信息
- $api->get('look_good','StudioOrderController@look_good');
- $api->get('my_storage','StorageController@my_storage');
- $api->get('put_storage','StorageController@put_storage');
- $api->get('good_detail','StorageController@good_detail');
- $api->get('put_storage_detail','StorageController@put_storage_detail');
- $api->get('get_storage','StorageController@get_storage');
- $api->get('get_group','StorageController@get_group');
- $api->get('get_detail','StorageController@get_detail');
- $api->get('GetUserTeamList','TeamController@GetUserTeamList');
- $api->get('GetUserTeamLevelDetail','TeamController@GetUserTeamLevelDetail');
- $api->get('GetArticleGroup','ArticleController@GetArticleGroup');//文章分组
- $api->get('GetRecomArticle','ArticleController@GetRecomArticle');//推荐文章
- $api->get('GetArticleDetail','ArticleController@GetArticleDetail');//文章详情
- $api->get('GetArticleList','ArticleController@GetArticleList');//文章列表
- $api->get('makeQrCode','WechatController@makeQrCode');//文章列表
- $api->get('TestCache','IndexController@TestCache');//文章列表
- $api->get('discernAdress','AddressController@DealAddress');
- $api->get('GetOrderDetail','OrdertestController@GetOrderDetail');//获取活动时间
- $api->get('sql','BasicController@GetSql');
- });
|