ChannelRoutes.php 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /**
  3. * 渠道数据文件
  4. */
  5. Route::group(['domain' => env('MANAGE_DOMAIN'), 'namespace' => 'App\Http\Controllers\Manage\Channel', 'prefix' => 'api/channel', 'middleware' => 'ManageApiAuth'], function () {
  6. //获取所有渠道
  7. Route::get('getChannelList', 'ChannelsController@getChannelList');
  8. //创建渠道
  9. Route::get('create', 'ChannelsController@create');
  10. //根据手机号获取
  11. Route::get('getByPhone', 'ChannelsController@getByPhone');
  12. //根据手机号获取
  13. Route::get('getByPhone', 'ChannelsController@getByPhone');
  14. //根据id获取渠道信息
  15. Route::get('getById', 'ChannelsController@getById');
  16. //根据id获取渠道名称
  17. Route::get('getChannelNameById', 'ChannelsController@getChannelNameById');
  18. //获取渠道数据
  19. Route::get('getChannleData', 'ChannelDataController@getChannleData');
  20. //添加公司
  21. Route::post('company/add', 'CompanyController@addCompany');
  22. //删除公司
  23. Route::post('company/remove', 'CompanyController@rmCompany');
  24. //更新公司
  25. Route::post('company/update', 'CompanyController@updateCompany');
  26. //公司列表
  27. Route::get('company/list', 'CompanyController@getList');
  28. //公司列表
  29. Route::get('company/allList', 'CompanyController@getAllList');
  30. Route::get('company/getChannelList', 'CompanyController@getChannelList');
  31. //添加书籍
  32. Route::post('company/addBook', 'CompanyController@addCompanyBook');
  33. //删除书籍
  34. Route::post('company/rmBook', 'CompanyController@rmCompanyBook');
  35. Route::get('company/listByBookId', 'CompanyController@getListByBookId');
  36. //设置公司所在的城市
  37. Route::post('company/setChannelCityInfo', 'CompanyController@setChannelCityInfo');
  38. //获取渠道列表
  39. Route::get('getList', 'ChannelsController@getList');
  40. //更新渠道信息
  41. Route::any('updateInfo', 'ChannelsController@updateChannelData');
  42. //获取渠道列表新
  43. Route::get('getChannelUserList', 'ChannelUserController@getList');
  44. Route::get('getChannelAllUserList', 'ChannelUserController@getAllList');
  45. //更新渠道信息新
  46. Route::any('updateChannelUserInfo', 'ChannelUserController@updateChannelData');
  47. Route::any('getBusinessChannelDayList', 'BusinessChannelController@getBusinessChannelDayList');
  48. Route::any('getBusinessChannelList', 'BusinessChannelController@getBusinessChannelList');
  49. Route::any('getBusinessCompanyList', 'BusinessChannelController@getBusinessCompanyList');
  50. Route::any('getBusinessChannelSingle', 'BusinessChannelController@getBusinessChannelSingle');
  51. Route::any('getBusinessDataList', 'BusinessChannelController@getBusinessDataList');
  52. Route::any('getCompanyWeekPromotion', 'BusinessChannelController@getCompanyLastWeekPromotion');
  53. Route::get('getBusinessChannelData', 'BusinessChannelDataController@getBusinessChannelData');
  54. Route::get('exportBusinessChannelData', 'BusinessChannelDataController@exportBusinessChannelData');
  55. //获取公司服务号列表
  56. Route::get('getCompanyServiceAccount','BusinessChannelController@getServiceAccount');
  57. //获取满意度调查信息
  58. Route::get('getQuestionNaires','ChannelQuestionNaireController@get_question_naires');
  59. //渠道活动
  60. Route::post('addActivity','ChannelActivityController@addActivity');
  61. Route::get('getActivity','ChannelActivityController@getActivities');
  62. //ChannelSellPlatform
  63. Route::get('channelSellPlatform/getByCode','ChannelSellPlatformController@getChannelSellPlatformByCode');
  64. Route::get('channelSellPlatform/getById','ChannelSellPlatformController@getChannelSellPlatformById');
  65. Route::get('channelSellPlatform/getList','ChannelSellPlatformController@getList');
  66. Route::post('channelSellPlatform/updateStatus','ChannelSellPlatformController@updateStatus');
  67. Route::get('channelSellPlatform/getChannelBookShellList','ChannelSellPlatformController@getChannelBookShellList');
  68. Route::post('channelSellPlatform/createOrUpdate','ChannelSellPlatformController@createOrUpdateChannelSellPlatform');
  69. Route::post('channelSellPlatform/importChannelBookSell','ChannelSellPlatformController@importChannelBookSell');
  70. });