user.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. namespace app\api\route;
  3. use app\api\middleware\AllowOriginMiddleware;
  4. use app\api\middleware\SeretKeyMiddleware;
  5. use app\api\middleware\UserMiddleware;
  6. use think\facade\Config;
  7. use think\facade\Route;
  8. use think\Response;
  9. /**
  10. * 无需授权的接口
  11. */
  12. Route::group('user',function () {
  13. //地址
  14. Route::get('address/detail/:id', 'v1.user/address')->name('address');//获取单个地址
  15. Route::get('address/list', 'v1.user/address_list')->name('addressList');//地址列表
  16. Route::post('address/default/set', 'v1.user/address_default_set')->name('addressDefaultSet');//设置默认地址
  17. Route::get('address/default', 'v1.user/address_default')->name('addressDefault');//获取默认地址
  18. Route::post('address/edit', 'v1.user/address_edit')->name('addressEdit');//修改 添加 地址
  19. Route::post('address/del', 'v1.user/address_del')->name('addressDel');//删除地址
  20. //基本信息
  21. Route::rule('init','v1.user/init');
  22. //获取微信信息
  23. Route::rule('getInfo', 'v1.weixin/getInfo');
  24. //获取小程序信息
  25. Route::rule('mp_auth', 'v1.weixin/mp_auth');
  26. //会员数据
  27. Route::rule('index', 'v1.user/index');
  28. //平台数据
  29. Route::rule('warehouse', 'v1.user/warehouse');
  30. //getPayOrder
  31. Route::rule('getPayOrder','v1.user/getPayOrder');
  32. //查看订单详情
  33. Route::rule('orderSubItem','v1.user/orderSubItem');
  34. //订单初始化数据
  35. Route::rule('orderInit','v1.user/orderInit');
  36. //订单下载
  37. Route::rule('orderDown','v1.user/orderDown');
  38. //充值
  39. Route::rule('rechargeX','v1.user/rechargeX');
  40. //资金情况
  41. Route::rule('rechargeInit','v1.user/rechargeInit');
  42. //明细数据
  43. Route::rule('detailList','v1.user/detailList');
  44. //我要提现
  45. Route::rule('subTx','v1.user/subTx');
  46. //提现列表
  47. Route::rule('txList','v1.user/txList');
  48. //订单详情
  49. Route::rule('orderInfoItem','v1.user/orderInfoItem');
  50. //提交问题反馈
  51. Route::rule('subOrderInfoMono','v1.user/subOrderInfoMono');
  52. //底单申请
  53. Route::rule('subOrderDdInfo','v1.user/subOrderDdInfo');
  54. //售后订单
  55. Route::rule('orderMonoList','v1.user/orderMonoList');
  56. //取消问题单
  57. Route::rule('orderMonoCancel','v1.user/orderMonoCancel');
  58. //底单申请
  59. Route::rule('orderDdList','v1.user/orderDdList');
  60. //底单取消
  61. Route::rule('orderDbCancel','v1.user/orderDbCancel');
  62. //佣金奖励
  63. Route::rule('extension','v1.user/extension');
  64. //检查充值
  65. Route::rule('checkRecharge','v1.user/checkRecharge');
  66. //修改基本信息
  67. Route::rule('account','v1.user/account');
  68. //修改密码
  69. Route::rule('password','v1.user/password');
  70. //推广显示
  71. Route::rule('extensionList','v1.user/extensionList');
  72. //绑定微信
  73. Route::rule('bind','v1.user/bind');
  74. //取消绑定
  75. Route::rule('delbind','v1.user/delbind');
  76. //vip
  77. Route::rule('vip','v1.user/vip');
  78. //rechargeXinit
  79. Route::rule('rechargeXinit','v1.user/rechargeXinit');
  80. //会员店铺
  81. Route::rule('shop','v1.user/shop');
  82. //会员店铺删除
  83. Route::rule('shopDel','v1.user/shopDel');
  84. //微信充值
  85. Route::rule('wxRecharge', 'v1.weixin/recharge');
  86. })->middleware([
  87. AllowOriginMiddleware::class,
  88. UserMiddleware::class
  89. ]);