Няма описание

api.php 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?php
  2. use Illuminate\Http\Request;
  3. use Illuminate\Support\Facades\Route;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | API Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register API routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | is assigned the "api" middleware group. Enjoy building your API!
  12. |
  13. */
  14. Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
  15. return $request->user();
  16. });
  17. Route::group(['namespace' => '\App\Http\Controllers\Api'], function () {
  18. #登录
  19. Route::any('login', 'Sys\PermissionController@login');
  20. Route::group(['middleware' => ['api.login']], function () {
  21. Route::group(['prefix'=>'sys'],function() {
  22. Route::get('permissionTree', 'Sys\PermissionController@permissionTree');
  23. Route::get('userPermission', 'Sys\PermissionController@userPermission');
  24. Route::post('createPermission', 'Sys\PermissionController@createPermission');
  25. Route::post('editPermission', 'Sys\PermissionController@editPermission');
  26. Route::post('beSort', 'Sys\PermissionController@beSort');
  27. Route::post('permissionDel', 'Sys\PermissionController@permissionDel');
  28. Route::get('permissionList', 'Sys\PermissionController@permissionList');
  29. Route::post('addRole', 'Sys\PermissionController@addRole');
  30. Route::post('editRole', 'Sys\PermissionController@editRole');
  31. Route::post('delRole', 'Sys\PermissionController@delRole');
  32. Route::get('roleList', 'Sys\PermissionController@roleList');
  33. Route::get('roleDetail', 'Sys\PermissionController@roleDetail');
  34. Route::post('addUser', 'Sys\PermissionController@addUser');
  35. Route::post('editUser', 'Sys\PermissionController@editUser');
  36. Route::post('delUser', 'Sys\PermissionController@delUser');
  37. Route::get('userList', 'Sys\PermissionController@userList');
  38. Route::get('userDetail', 'Sys\PermissionController@userDetail');
  39. # 客户列表
  40. Route::get('customerList', 'Sys\CustomerController@list');
  41. # 客户操作(添加和编辑)
  42. Route::post('customerOperate', 'Sys\CustomerController@operate');
  43. # 客户删除
  44. Route::post('customerDelete', 'Sys\CustomerController@delete');
  45. # 账号授权
  46. Route::post('accountAuth', 'Sys\CustomerController@accountAuth');
  47. # 账号删除
  48. Route::post('accountDel', 'Sys\CustomerController@accountDel');
  49. });
  50. # 广告主下拉列表
  51. Route::get('adverList', 'Sys\PermissionController@adverList');
  52. # 行业信息下拉列表
  53. Route::get('industryList', 'Sys\CustomerController@industryList');
  54. Route::group(['prefix' => 'supplement_order'], function() {
  55. # 助推订单停投
  56. Route::post('stop', 'Data\SupplementOrderController@supplementOrderStop');
  57. # 助推订单修改推广结束时间
  58. Route::post('updatePromotionEndTime', 'Data\SupplementOrderController@supplementOrderUpdatePromotionEndTime');
  59. # 批量修改助推订单推广结束时间
  60. Route::post('updatePromotionEndTimeBatch', 'Data\SupplementOrderController@supplementOrderUpdatePromotionEndTimeBatch');
  61. # 助推订单升单
  62. Route::post('upgradeAmount', 'Data\SupplementOrderController@supplementOrderUpgradeAmount');
  63. # 助推订单升单
  64. Route::post('upgradeAmountBatch', 'Data\SupplementOrderController@supplementOrderUpgradeAmountBatch');
  65. # 助推订单修改出价
  66. Route::post('updateUnitPrice', 'Data\SupplementOrderController@supplementOrderUpdateUnitPrice');
  67. # 助推订单批量修改出价
  68. Route::post('updateUnitPriceBatch', 'Data\SupplementOrderController@supplementOrderUpdateUnitPriceBatch');
  69. });
  70. Route::group(['prefix'=>'stat'],function() {
  71. #达人排行-视频
  72. Route::get('redVideoRank', 'Data\DataStatController@redVideoRank');
  73. #达人排行-直播
  74. Route::get('redLiveRank', 'Data\DataStatController@redLiveRank');
  75. #消耗数据-汇总
  76. Route::get('costDataTotal', 'Data\DataStatController@costDataTotal');
  77. #消耗数据-分客户列表
  78. Route::get('custCostList', 'Data\DataStatController@custCostList');
  79. #流量助推-客户分析
  80. Route::get('custFlowVideoList', 'Data\DataStatController@custFlowVideoList');
  81. Route::get('custFlowVideoDetails', 'Data\DataStatController@custFlowVideoDetails');
  82. Route::get('custFlowVideoUserDetails', 'Data\DataStatController@custFlowVideoUserDetails');
  83. Route::get('custFlowLiveList', 'Data\DataStatController@custFlowLiveList');
  84. Route::get('custFlowLiveDetails', 'Data\DataStatController@custFlowLiveDetails');
  85. Route::get('custFlowLiveUserDetails', 'Data\DataStatController@custFlowLiveUserDetails');
  86. #流量助推-行业分析
  87. Route::get('industryFlowVideoList', 'Data\DataStatController@industryFlowVideoList');
  88. Route::get('industryFlowVideoDetails', 'Data\DataStatController@industryFlowVideoDetails');
  89. Route::get('industryFlowVideoCustDetails', 'Data\DataStatController@industryFlowVideoCustDetails');
  90. Route::get('industryFlowLiveList', 'Data\DataStatController@industryFlowLiveList');
  91. Route::get('industryFlowLiveDetails', 'Data\DataStatController@industryFlowLiveDetails');
  92. Route::get('industryFlowLiveCustDetails', 'Data\DataStatController@industryFlowLiveCustDetails');
  93. #助推订单
  94. Route::get('supplementOrderList', 'Data\DataStatController@supplementOrderList');
  95. #流量助推-实时数据,分日
  96. Route::get('svfDailyData', 'Data\DataStatController@svfDailyData');
  97. Route::get('svfDailyUserData', 'Data\DataStatController@svfDailyUserData');
  98. Route::post('svfDataUp', 'Data\DataStatController@svfDataUp');
  99. #快任务-视频分日
  100. Route::get('qtaskVideoDailyData', 'Data\DataStatController@qtaskVideoDailyData');
  101. Route::get('qtaskVideoTaskDailyData', 'Data\DataStatController@qtaskVideoTaskDailyData');
  102. Route::get('qtaskVideoOrderDailyData', 'Data\DataStatController@qtaskVideoOrderDailyData');
  103. #快任务-直播分日
  104. Route::get('qtaskLiveDailyData', 'Data\DataStatController@qtaskLiveDailyData');
  105. Route::get('qtaskLiveTaskDailyData', 'Data\DataStatController@qtaskLiveTaskDailyData');
  106. Route::get('qtaskLiveOrderDailyData', 'Data\DataStatController@qtaskLiveOrderDailyData');
  107. #快任务视频-行业分析
  108. Route::get('industryQtaskVideoList', 'Data\DataStatController@industryQtaskVideoList');
  109. Route::get('industryQtaskVideoDetails', 'Data\DataStatController@industryQtaskVideoDetails');
  110. Route::get('industryQtaskVideoCustDetails', 'Data\DataStatController@industryQtaskVideoCustDetails');
  111. #快任务直播-行业分析
  112. Route::get('industryQtaskLiveList', 'Data\DataStatController@industryQtaskLiveList');
  113. Route::get('industryQtaskLiveDetails', 'Data\DataStatController@industryQtaskLiveDetails');
  114. Route::get('industryQtaskLiveCustDetails', 'Data\DataStatController@industryQtaskLiveCustDetails');
  115. #快任务视频-客户分析
  116. Route::get('custQtaskVideoList', 'Data\DataStatController@custQtaskVideoList');
  117. Route::get('custQtaskVideoDetails', 'Data\DataStatController@custQtaskVideoDetails');
  118. Route::get('custQtaskVideoUserDetails', 'Data\DataStatController@custQtaskVideoUserDetails');
  119. #快任务直播-客户分析
  120. Route::get('custQtaskLiveList', 'Data\DataStatController@custQtaskLiveList');
  121. Route::get('custQtaskLiveDetails', 'Data\DataStatController@custQtaskLiveDetails');
  122. Route::get('custQtaskLiveUserDetails', 'Data\DataStatController@custQtaskLiveUserDetails');
  123. # 分时数据趋势
  124. Route::get('svfHourDataCure', 'Data\DataStatController@svfHourDataCure');
  125. # 分时数据对比
  126. Route::post('svfHourDataContrast', 'Data\DataStatController@svfHourDataContrast');
  127. });
  128. # 产品分析
  129. Route::group(['prefix'=>'product'],function() {
  130. # 消耗汇总
  131. Route::get('dataSummary', 'Data\ProductController@dataSummary');
  132. # 数据统计
  133. Route::get('dataStatistical', 'Data\ProductController@dataStatistical');
  134. });
  135. # 客户分析
  136. Route::group(['prefix'=>'customer'],function() {
  137. # 消耗汇总和曲线
  138. Route::get('summaryTrend', 'Data\CustomerController@summaryTrend');
  139. # 数据列表
  140. Route::get('dataList', 'Data\CustomerController@dataList');
  141. });
  142. # 自定义字段
  143. Route::group(['prefix'=>'searchConfig'], function() {
  144. Route::get('configCheck', 'Data\SearchConfigController@configCheck');
  145. Route::get('configInfo', 'Data\SearchConfigController@configInfo');
  146. Route::get('groupList', 'Data\SearchConfigController@groupList');
  147. Route::post('groupAdd', 'Data\SearchConfigController@groupAdd');
  148. Route::post('groupEdit', 'Data\SearchConfigController@groupEdit');
  149. Route::post('groupApply', 'Data\SearchConfigController@groupApply');
  150. Route::get('configDetail', 'Data\SearchConfigController@configDetail');
  151. Route::post('confEdit', 'Data\SearchConfigController@confEdit');
  152. });
  153. # 达人库
  154. Route::group(['prefix'=>'starLibrary'], function() {
  155. # 达人信息导入
  156. Route::post('infoUpload', 'Sys\StarLibraryController@infoUpload');
  157. # 达人机构导入
  158. Route::post('instUpload', 'Sys\StarLibraryController@instUpload');
  159. # 类别列表
  160. Route::get('category', 'Sys\StarLibraryController@category');
  161. # 达人信息列表
  162. Route::get('infoList', 'Sys\StarLibraryController@infoList');
  163. # 达人机构列表
  164. Route::get('instList', 'Sys\StarLibraryController@instList');
  165. # 达人库上传记录
  166. Route::get('upList', 'Sys\StarLibraryController@upList');
  167. # 用户组列表
  168. Route::get('groupList', 'Sys\StarLibraryController@groupList');
  169. # 用户组添加
  170. Route::post('groupAdd', 'Sys\StarLibraryController@groupAdd');
  171. # 用户组编辑
  172. Route::post('groupEdit', 'Sys\StarLibraryController@groupEdit');
  173. # 用户组删除
  174. Route::post('groupDel', 'Sys\StarLibraryController@groupDel');
  175. });
  176. });
  177. # 我的任务
  178. Route::group(['prefix'=>'task'],function() {
  179. # 星视频列表
  180. Route::post('starVideoList', 'Data\TaskController@starVideoList');
  181. # 星视频任务添加备注
  182. Route::post('starVideoRemarkSet', 'Data\TaskController@starVideoRemarkSet');
  183. });
  184. # 助推订单批量创建
  185. Route::group(['prefix'=>'supplementOrder'],function() {
  186. # 配置助推订单批量创建任务
  187. Route::post('setCreateTask', 'Data\TaskController@setCreateTask');
  188. # 配置助推订单批量创建的任务列表
  189. Route::get('taskList', 'Data\TaskController@taskList');
  190. # 获取批量创建助推订单的配置详情
  191. Route::get('taskDetail', 'Data\TaskController@taskDetail');
  192. # 获取配置自动生成的助推订单信息
  193. Route::get('list', 'Data\TaskController@orderList');
  194. # 停用批量创建配置
  195. Route::get('stopConfig', 'Data\TaskController@stopConfig');
  196. });
  197. Route::group(['middleware' => ['h5.verify']], function () {
  198. Route::any('kx/signRecords', 'Kx\DataController@signRecords');
  199. });
  200. Route::any('kx/exportRecords', 'Kx\DataController@exportRecords');
  201. #url模拟点击
  202. Route::any('kx/urlSimulateClick', 'Kx\DataController@urlSimulateClick');
  203. Route::any('kx/addLuckyInfo', 'Kx\DataController@addLuckyInfo');
  204. Route::any('kx/luckyDraw', 'Kx\DataController@luckyDraw');
  205. #抽奖记录
  206. Route::any('kx/exportLucky', 'Kx\DataController@exportLuckyRecords');
  207. });