user.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: TABLE ME
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-09-05 09:21
  10. // +----------------------------------------------------------------------
  11. use app\api\middleware\AllowOriginMiddleware;
  12. use app\api\middleware\SeretKeyMiddleware;
  13. use app\api\middleware\UserMiddleware;
  14. use think\facade\Route;
  15. Route::group('user', function () {
  16. //获取用户信息
  17. Route::rule('userInfo', 'User/userInfo');
  18. //设置用户信息
  19. Route::rule('setUserInfo', 'User/setUserInfo');
  20. //资料申请审核
  21. Route::rule('subInfoAudit', 'User/subInfoAudit');
  22. //资料申请审核2
  23. Route::rule('subTypeAudit', 'User/subTypeAudit');
  24. //获取用户子级列表
  25. Route::rule('getChildList', 'User/getChildList');
  26. //获取用户总邀请人数排行榜
  27. Route::rule('getInviterRanking','User/getInviterRanking');
  28. //提交模板订单
  29. Route::rule('subShowTemplateOrder', 'User/subShowTemplateOrder');
  30. //模板支付订单状态查询
  31. Route::rule('payShowTemplateOrderInfo', 'User/payShowTemplateOrderInfo');
  32. //用户模板列表
  33. Route::rule('userShowTemplateList', 'User/userShowTemplateList');
  34. //设置默认模板
  35. Route::rule('setShowTemplate', 'User/setShowTemplate');
  36. //获取名片信息
  37. Route::rule('getUserCardInfo', 'User/getUserCardInfo');
  38. //绑定手机号
  39. Route::rule('bindMobile', 'User/bindMobile');
  40. //获取小程序码
  41. Route::rule('getWxmpQrcode', 'User/getWxmpQrcode');
  42. //base64上传
  43. Route::rule('uploadBase64', 'User/uploadBase64');
  44. //图片上传
  45. Route::rule('upload', 'User/upload');
  46. //视频上传
  47. Route::rule('uploadVideo', 'User/uploadVideo');
  48. //七牛图片上传token
  49. Route::rule('qiniuUploadToken', 'User/qiniuUploadToken');
  50. //七牛图片上传
  51. Route::rule('qiniuUpload', 'User/qiniuUpload');
  52. //获取小程序邀请码
  53. Route::rule('getWxmpInviteQrcode', 'User/getWxmpInviteQrcode');
  54. })->middleware([
  55. AllowOriginMiddleware::class,
  56. SeretKeyMiddleware::class,
  57. UserMiddleware::class,
  58. ]);