123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519 |
- <?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!
- |
- */
- //Route::middleware('auth:api')->get('/user', function (Request $request) {
- // return $request->user();
- //});
- //
- $api = app('Dingo\Api\Routing\Router');
- $api->version('v1', ['namespace' => 'App\Http\Controllers\Api\V1'], function ($api) {
- $api->post('attachment/upload', [
- 'as' => 'attachment.upload',
- 'uses' => 'AttachmentController@upload',
- ]);
- $api->post('attachment/delete', [
- 'as' => 'attachment.delete',
- 'uses' => 'AttachmentController@delete',
- ]);
- $api->get('shop2', [
- 'as' => 'shop2',
- 'uses' => 'AuthController@shop2',
- ]);
- $api->post('auth/login', [
- 'as' => 'auth.login',
- 'uses' => 'AuthController@login',
- ]);
- $api->get('home/index', [
- 'as' => 'home.index',
- 'uses' => 'HomeController@index',
- ]);
- $api->get('home/search', [
- 'as' => 'home.search',
- 'uses' => 'HomeController@search',
- ]);
- $api->get('cate/index', [
- 'as' => 'cate.index',
- 'uses' => 'CateController@index',
- ]);
- $api->get('goods/show', [
- 'as' => 'goods.show',
- 'uses' => 'GoodsController@show',
- ]);
- $api->post('goods/comment', [
- 'as' => 'goods.comment',
- 'uses' => 'GoodsController@comment',
- ]);
- $api->get('goods/addtocar', [
- 'as' => 'goods.addtocar',
- 'uses' => 'GoodsController@addToCar',
- ]);
- $api->get('goods/chose_attr', [
- 'as' => 'goods.chose_attr',
- 'uses' => 'GoodsController@choseAttr',
- ]);
- $api->get('goods/collection', [
- 'as' => 'goods.collection',
- 'uses' => 'GoodsController@collection',
- ]);
- $api->get('car/index', [
- 'as' => 'car.index',
- 'uses' => 'CarController@index',
- ]);
- $api->get('car/delete', [
- 'as' => 'car.delete',
- 'uses' => 'CarController@delete',
- ]);
- $api->post('car/update', [
- 'as' => 'car.update',
- 'uses' => 'CarController@update',
- ]);
- $api->get('find/index', [
- 'as' => 'find.index',
- 'uses' => 'FindController@index',
- ]);
- $api->get('my/index', [
- 'as' => 'my.index',
- 'uses' => 'MyController@index',
- ]);
- $api->get('my/favorite', [
- 'as' => 'my.favorite',
- 'uses' => 'MyController@favorite',
- ]);
- $api->get('my/address/index', [
- 'as' => 'address.index',
- 'uses' => 'AddressController@index',
- ]);
- $api->get('my/address/area', [
- 'as' => 'address.area',
- 'uses' => 'AddressController@area',
- ]);
- $api->get('my/address/show', [
- 'as' => 'address.show',
- 'uses' => 'AddressController@show',
- ]);
- $api->post('my/address/update', [
- 'as' => 'address.update',
- 'uses' => 'AddressController@update',
- ]);
- /* $api->post('my/address/store', [
- 'as' => 'address.store',
- 'uses' => 'AddressController@store',
- ]);*/
- $api->get('my/address/delete', [
- 'as' => 'address.delete',
- 'uses' => 'AddressController@delete',
- ]);
- $api->get('my/address/edit', [
- 'as' => 'address.edit',
- 'uses' => 'AddressController@edit',
- ]);
- $api->get('order/sure', [
- 'as' => 'order.sure',
- 'uses' => 'OrderController@sure',
- ]);
- $api->get('order/create', [
- 'as' => 'order.create',
- 'uses' => 'OrderController@create',
- ]);
- $api->get('order/show', [
- 'as' => 'order.show',
- 'uses' => 'OrderController@show',
- ]);
- $api->post('order/pay', [
- 'as' => 'order.pay',
- 'uses' => 'OrderController@pay',
- ]);
- $api->post('order/refund', [
- 'as' => 'order.refund',
- 'uses' => 'OrderController@refund',
- ]);
- $api->get('company/info', [
- 'as' => 'company.info',
- 'uses' => 'CompanyController@companyInfo',
- ]);
- $api->get('company/version', [
- 'as' => 'company.version',
- 'uses' => 'CompanyController@version',
- ]);
- $api->get('card/index', [
- 'as' => 'card.index',
- 'uses' => 'CardController@cardIndex',
- ]);
- $api->get('card/info', [
- 'as' => 'card.info',
- 'uses' => 'CardController@cardUserInfo',
- ]);
- $api->get('card/progress', [
- 'as' => 'card.progress',
- 'uses' => 'CardController@cardUserProgress',
- ]);
- $api->get('card/honor', [
- 'as' => 'card.honor',
- 'uses' => 'CardController@cardUserHonor',
- ]);
- $api->get('card/setting', [
- 'as' => 'card.setting',
- 'uses' => 'CardController@cardSetting',
- ]);
- $api->get('card/project', [
- 'as' => 'card.project',
- 'uses' => 'CardController@cardUserProject',
- ]);
- $api->get('card/projectDetail', [
- 'as' => 'card.projectDetail',
- 'uses' => 'CardController@projectDetail',
- ]);
- $api->get('card/trend', [
- 'as' => 'card.trend',
- 'uses' => 'CardController@CardUserTrend',
- ]);
- $api->get('card/trendDetail', [
- 'as' => 'card.trendDetail',
- 'uses' => 'CardController@trendDetail',
- ]);
- $api->get('album/setting', [
- 'as' => 'album.setting',
- 'uses' => 'AlbumController@albumSetting',
- ]);
- $api->get('album/cat', [
- 'as' => 'album.cat',
- 'uses' => 'AlbumController@albumCat',
- ]);
- $api->get('album/goods', [
- 'as' => 'album.goods',
- 'uses' => 'AlbumController@albumGoods',
- ]);
- $api->get('album/goods-detail', [
- 'as' => 'album.goods-detail',
- 'uses' => 'AlbumController@albumGoodsDetail',
- ]);
- $api->get('album/set-price', [
- 'as' => 'album.set-price',
- 'uses' => 'AlbumController@albumSetPrice',
- ]);
- $api->post('album/xyx_login', [
- 'as' => 'album.xyx_login',
- 'uses' => 'AlbumController@albumXyxLogin',
- ]);
- $api->post('album/login', [
- 'as' => 'album.login',
- 'uses' => 'AlbumController@albumXcxLogin',
- ]);
- $api->get('album/checklogin', [
- 'as' => 'album.checklogin',
- 'uses' => 'AlbumController@albumchecklogin',
- ]);
- $api->post('album/agent_price_set', [
- 'as' => 'album.AgentPriceSet',
- 'uses' => 'AlbumController@albumAgentPriceSet',
- ]);
- $api->get('album/get-banner', [
- 'as' => 'album.GetBanner',
- 'uses' => 'AlbumController@albumGetBanner',
- ]);
- $api->get('album/content_list', [
- 'as' => 'album.content_list',
- 'uses' => 'AlbumController@albumContentList',
- ]);
- $api->get('album/content_detail', [
- 'as' => 'album.content_detail',
- 'uses' => 'AlbumController@albumContentDetail',
- ]);
- $api->get('album/style', [
- 'as' => 'album.style',
- 'uses' => 'AlbumController@albumStyle',
- ]);
- $api->post('album/set-phone', [
- 'as' => 'album.savePhone',
- 'uses' => 'AlbumController@albumSavePhone',
- ]);
- $api->post('album/set-phone', [
- 'as' => 'album.savePhone',
- 'uses' => 'AlbumController@albumSavePhone',
- ]);
- $api->post('album/add_agent', [
- 'as' => 'album.AddAgent',
- 'uses' => 'AlbumController@albumAddAgent',
- ]);
- $api->post('album/get-cart-of-watch', [
- 'as' => 'album.GetCartOfWatch',
- 'uses' => 'AlbumController@albumGetCartOfWatch',
- ]);
- $api->post('album/get-watch-recored', [
- 'as' => 'album.GetWatchRecord',
- 'uses' => 'AlbumController@albumGetWatchRecord',
- ]);
- $api->post('album/set-watch', [
- 'as' => 'album.SetWatch',
- 'uses' => 'AlbumController@albumSetWatch',
- ]);
- $api->post('album/save_form_id', [
- 'as' => 'album.SaveFormId',
- 'uses' => 'AlbumController@albumSaveFormId',
- ]);
- $api->get('album/search_goods', [
- 'as' => 'album.search_goods',
- 'uses' => 'AlbumController@albumSearchGoods',
- ]);
- $api->get('album/add_favorite', [
- 'as' => 'album.add_favorite',
- 'uses' => 'AlbumController@albumAddFavorite',
- ]);
- $api->get('album/get-agent-address', [
- 'as' => 'album.get-agent-address',
- 'uses' => 'AlbumController@albumGetAgentAdress',
- ]);
- $api->get('album/test', [
- 'as' => 'album.test',
- 'uses' => 'AlbumController@test',
- ]);
- $api->post('album/get_data_goods', [
- 'as' => 'album.get_data_goods',
- 'uses' => 'AlbumController@albumGetDataGoods',
- ]);
- $api->post('album_post/info', [
- 'as' => 'album_post.info',
- 'uses' => 'AlbumPosterController@posterInfo',
- ]);
- $api->post('album_post/create', [
- 'as' => 'album_post.create',
- 'uses' => 'AlbumPosterController@createPoster',
- ]);
- $api->post('album_post/del', [
- 'as' => 'album_post.del',
- 'uses' => 'AlbumPosterController@posterDel',
- ]);
- $api->get('album/get-customer', [
- 'as' => 'album.get-customer',
- 'uses' => 'AlbumController@albumGetCustomer',
- ]);
- $api->post('album/set-customer', [
- 'as' => 'album.set-customer',
- 'uses' => 'AlbumController@albumSetCustomer',
- ]);
- $api->post('album/statistical', [
- 'as' => 'album.statistical',
- 'uses' => 'AlbumController@albumStatistical',
- ]);
- $api->post('album/get_statistical', [
- 'as' => 'album.get_statistical',
- 'uses' => 'AlbumController@albumGetStatistical',
- ]);
- $api->post('album/get_data_cat', [
- 'as' => 'album.get_data_cat',
- 'uses' => 'AlbumController@albumGetDataCat',
- ]);
- $api->post('album/get_data_cat_single', [
- 'as' => 'album.get_data_cat_single',
- 'uses' => 'AlbumController@albumGetDataCatSingle',
- ]);
- $api->get('album/favorite_list', [
- 'as' => 'album.favorite_list',
- 'uses' => 'AlbumController@albumFavoriteList',
- ]);
- $api->get('album/favorite_del', [
- 'as' => 'album.favorite_del',
- 'uses' => 'AlbumController@albumFavoriteDel',
- ]);
- $api->get('album/get_user_info', [
- 'as' => 'album.get_user_info',
- 'uses' => 'AlbumController@albumGetUserInfo',
- ]);
- $api->get('furniture/setting', [
- 'as' => 'furniture.setting',
- 'uses' => 'FurnitureController@furnitureSetting',
- ]);
- $api->any('furniture/add_comments', [
- 'as' => 'furniture.add_comments',
- 'uses' => 'FurnitureController@furnitureAddComments',
- ]);
- $api->get('furniture/news_detail', [
- 'as' => 'furniture.detail',
- 'uses' => 'FurnitureController@furnitureNewsDetail',
- ]);
- $api->get('furniture/news_list', [
- 'as' => 'furniture.list',
- 'uses' => 'FurnitureController@furnitureNewsList',
- ]);
- $api->post('furniture/xcx_login', [
- 'as' => 'furniture.xcx_login',
- 'uses' => 'FurnitureController@furnitureXcxLogin',
- ]);
- $api->get('furniture/goods_list', [
- 'as' => 'furniture.goodslist',
- 'uses' => 'FurnitureController@furnitureGoodsList',
- ]);
- $api->post('album/customer-goods',[
- 'as' => 'album/customer-goods',
- 'uses' => 'AlbumController@albumCustomerGoods'
- ]);
- $api->post('album/customer-goods-detail',[
- 'as' => 'album/customer-goods-detail',
- 'uses' => 'AlbumController@albumCustomerGoodsDetail'
- ]);
- $api->post('album/get-count-favorite',[
- 'as' => 'album/get-count-favorite',
- 'uses' => 'AlbumController@albumGetCountOfFavorite'
- ]);
- $api->get('furniture/getattr', [
- 'as' => 'furniture.getattr',
- 'uses' => 'FurnitureController@getAttr',
- ]);
- $api->post('furniture/createorder', [
- 'as' => 'furniture.createOrder',
- 'uses' => 'FurnitureController@createOrder',
- ]);
- $api->get('furniture/getorder', [
- 'as' => 'furniture.getorder',
- 'uses' => 'FurnitureController@getOrder',
- ]);
- $api->get('furniture/getorderdetail', [
- 'as' => 'furniture.getOrderDetail',
- 'uses' => 'FurnitureController@getOrderDetail',
- ]);
- $api->get('furniture/getprogress', [
- 'as' => 'furniture.getprogress',
- 'uses' => 'FurnitureController@getProgress',
- ]);
- $api->get('furniture/getreviewcount', [
- 'as' => 'furniture.getreviewcount',
- 'uses' => 'FurnitureController@getReviewCount',
- ]);
- $api->post('furniture/addreview', [
- 'as' => 'furniture.addreview',
- 'uses' => 'FurnitureController@addReview',
- ]);
- $api->post('furniture/service_login', [
- 'as' => 'furniture.service_login',
- 'uses' => 'FurnitureController@serviceLogin',
- ]);
- $api->get('furniture/getfurnitureads', [
- 'as' => 'furniture.getfurnitureads',
- 'uses' => 'FurnitureController@getFurnitureAds',
- ]);
- $api->post('furniture/updatestatus', [
- 'as' => 'furniture.updateStatus',
- 'uses' => 'FurnitureController@updateStatus',
- ]);
- $api->post('furniture/getphonenumber', [
- 'as' => 'furniture.getPhoneNumber',
- 'uses' => 'FurnitureController@getPhoneNumber',
- ]);
- $api->get('furniture/getqrcode', [
- 'as' => 'furniture.getQrcode',
- 'uses' => 'FurnitureController@getQrcode',
- ]);
- $api->get('furniture/ordercount', [
- 'as' => 'furniture.orderCount',
- 'uses' => 'FurnitureController@orderCount',
- ]);
- $api->get('furniture/searchlist', [
- 'as' => 'furniture.searchList',
- 'uses' => 'FurnitureController@searchList',
- ]);
- $api->any('furniture/printorder', [
- 'as' => 'furniture.printOrder',
- 'uses' => 'FurnitureController@printOrder',
- ]);
- $api->post('furniture/saveformid', [
- 'as' => 'furniture.saveFormId',
- 'uses' => 'FurnitureController@saveFormId',
- ]);
- $api->get('furniture/getmorecomments', [
- 'as' => 'furniture.getMoreComments',
- 'uses' => 'FurnitureController@getMoreComments',
- ]);
- $api->get('furniture/addtolike', [
- 'as' => 'furniture.addtolike',
- 'uses' => 'FurnitureController@addToLike',
- ]);
- $api->get('furniture/newgoods_list', [
- 'as' => 'furniture.newgoods_list',
- 'uses' => 'FurnitureController@newgoods_list',
- ]);
- $api->get('furniture/newgoods_index', [
- 'as' => 'furniture.newgoods_index',
- 'uses' => 'FurnitureController@newgoods_index',
- ]);
- $api->post('furniture/newgoods_addcomment', [
- 'as' => 'furniture.newgoods_addcomment',
- 'uses' => 'FurnitureController@newgoods_addcomment',
- ]);
- $api->post('furniture/newgoods_addbooking', [
- 'as' => 'furniture.newgoods_addbooking',
- 'uses' => 'FurnitureController@newgoods_addbooking',
- ]);
- /*
- * AlbumBoss
- */
- $api->get('album_boss/get_top', [
- 'as' => 'album_boss.get_top',
- 'uses' => 'AlbumBossController@getTop',
- ]);
- $api->post('album_boss/agent_customer', [
- 'as' => 'album_boss.agent_customer',
- 'uses' => 'AlbumBossController@agentCustomer',
- ]);
- $api->post('album_boss/agent_statistical', [
- 'as' => 'album_boss.agent_statistical',
- 'uses' => 'AlbumBossController@agentStatistical',
- ]);
- $api->post('album_boss/agent_overview', [
- 'as' => 'album_boss.agent_overview',
- 'uses' => 'AlbumBossController@albumOverview',
- ]);
- });
|