wechat.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Webman\Route;
  3. Route::group('/wechat',function (){
  4. Route::group('/user', function () {
  5. Route::post('/login', [\app\wechat\controller\UserController::class, 'login']);
  6. Route::post('/auth', [\app\wechat\controller\UserController::class, 'auth']);
  7. Route::post('/statistics', [\app\wechat\controller\UserController::class, 'statistics']);
  8. Route::post('/info', [\app\wechat\controller\UserController::class, 'info']);
  9. Route::post('/edit', [\app\wechat\controller\UserController::class, 'updateUser']);
  10. Route::post('/password', [\app\wechat\controller\UserController::class, 'setPassword']);
  11. Route::post('/list', [\app\wechat\controller\UserController::class, 'userList']);
  12. Route::post('/team', [\app\wechat\controller\UserController::class, 'teamList']);
  13. Route::post('/add', [\app\wechat\controller\UserController::class, 'addUser']);
  14. Route::post('/infoById', [\app\wechat\controller\UserController::class, 'infoById']);
  15. Route::post('/editById', [\app\wechat\controller\UserController::class, 'updateUserById']);
  16. Route::post('/del', [\app\wechat\controller\UserController::class, 'deleteUser']);
  17. Route::post('/all', [\app\wechat\controller\UserController::class, 'index']);
  18. Route::post('/trend', [\app\wechat\controller\UserController::class, 'customTrend']);
  19. });
  20. Route::group('/custom', function () {
  21. Route::post('/config', [\app\wechat\controller\CustomController::class, 'options']);
  22. Route::post('/add', [\app\wechat\controller\CustomController::class, 'addCustom']);
  23. Route::post('/info', [\app\wechat\controller\CustomController::class, 'customInfo']);
  24. Route::post('/edit', [\app\wechat\controller\CustomController::class, 'editCustom']);
  25. Route::post('/list', [\app\wechat\controller\CustomController::class, 'customList']);
  26. Route::post('/select', [\app\wechat\controller\CustomController::class, 'selectList']);
  27. Route::post('/status', [\app\wechat\controller\CustomController::class, 'updateStatus']);
  28. Route::post('/move', [\app\wechat\controller\CustomController::class, 'moveCustom']);
  29. Route::post('/logs', [\app\wechat\controller\CustomController::class, 'moveLogs']);
  30. Route::post('/check', [\app\wechat\controller\CustomController::class, 'checkCustom']);
  31. Route::post('/mobile', [\app\wechat\controller\CustomController::class, 'checkMobile']);
  32. Route::post('/appoint', [\app\wechat\controller\CustomController::class, 'appointConsultant']);
  33. });
  34. Route::group('/follow', function () {
  35. Route::post('/add', [\app\wechat\controller\FollowController::class, 'addFollow']);
  36. Route::post('/list', [\app\wechat\controller\FollowController::class, 'followList']);
  37. Route::post('/info', [\app\wechat\controller\FollowController::class, 'followInfo']);
  38. });
  39. })->middleware(\app\middleware\WechatAuthCheck::class);