agent_api.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. Route::get('ping', 'AuthController@pong');
  14. Route::get('chunqiu/captcha', function () {
  15. return app('captcha')->create('sanguo', true);
  16. });
  17. // 授权
  18. Route::group(
  19. [
  20. 'prefix' => '/auth',
  21. ],
  22. function () {
  23. Route::post('/login', 'AuthController@login')->name('auth.login');
  24. Route::post('/refresh/token', 'AuthController@refreshToken')->name('auth.refresh');
  25. }
  26. );
  27. // 上传
  28. /*Route::group(
  29. [
  30. 'prefix' => '/upload',
  31. ],
  32. function () {
  33. // Plupload上传.
  34. Route::any('/plupload', 'PluploadController@upload');
  35. // 百度UEditor
  36. Route::any('/ueditor', 'UeditorController@service');
  37. }
  38. );*/
  39. // 管理员
  40. Route::group(
  41. [
  42. 'prefix' => '/agent',
  43. ],
  44. function () {
  45. // 代理列表
  46. Route::post('/lists', 'AgentController@lists');
  47. // 代理添加
  48. Route::post('/create', 'AgentController@create');
  49. // 账户信息修改
  50. Route::post('/modify', 'AgentController@modify');
  51. // 账户信息.
  52. Route::post('/detail/me', 'AgentController@detailMe');
  53. // 匹配用户名
  54. Route::post('check/username', 'AgentController@checkUsername');
  55. // 修改下级用户
  56. Route::post('edit/level/agent', 'AgentController@editLevelAgent');
  57. }
  58. );
  59. // 提现管理
  60. Route::group(
  61. [
  62. 'prefix' => '/withdraw',
  63. ],
  64. function () {
  65. // 列表
  66. Route::post('/lists', 'WithdrawController@lists');
  67. // 发起提现申请
  68. Route::post('/apply', 'WithdrawController@apply');
  69. //账户详情
  70. Route::post('/account/info', 'WithdrawController@accountInfo');
  71. // 提现方式列表.
  72. Route::post('/bank/info', 'WithdrawController@bankInfo');
  73. // 新增提现方式
  74. Route::post('/bank/create', 'WithdrawController@bankCreate');
  75. // usdtNetWork
  76. Route::post('/usdt/net', 'WithdrawController@usdtNetWork');
  77. }
  78. );
  79. // 分享管理
  80. Route::group(
  81. [
  82. 'prefix' => '/share',
  83. ],
  84. function () {
  85. // 分享链接列表
  86. Route::post('/lists', 'ShareUrlController@lists');
  87. }
  88. );
  89. // APP应用
  90. Route::group(
  91. [
  92. 'prefix' => '/app',
  93. ],
  94. function () {
  95. // 应用列表
  96. Route::post('/lists', 'AppController@lists');
  97. Route::post('/pack', 'AppController@pack');
  98. }
  99. );
  100. // 统计
  101. Route::group(
  102. [
  103. 'prefix' => '/total',
  104. ],
  105. function () {
  106. // 首页
  107. Route::post('/home', 'TotalController@home');
  108. // 统计列表
  109. Route::post('/lists', 'TotalController@lists');
  110. // cpa统计
  111. Route::post('/cpa/lists', 'TotalController@cpaLists');
  112. }
  113. );