app.php 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. Route::rule('login', 'User/login');
  13. Route::rule('verifyToken', 'User/verify_token');
  14. Route::rule('register', 'User/register');
  15. Route::rule('dingTalk', 'User/DingTalk');
  16. Route::rule('accountquery', 'User/AccountQuery');
  17. Route::rule('bindwx', 'User/BindWx');
  18. Route::rule('setSystemVer', 'User/setSystemVer');
  19. Route::rule('userlist', 'UserInfo/UserList');
  20. Route::rule('usersave', 'UserInfo/UserSave');
  21. Route::rule('userstatus', 'UserInfo/UserStatus');
  22. Route::rule('userinfo', 'UserInfo/info');
  23. Route::rule('setpasswd', 'UserInfo/PassSet');
  24. Route::rule('setcompany', 'UserInfo/setCompany');
  25. Route::rule('companystatus', 'UserInfo/setCompanyStatus');
  26. Route::rule('useradd', 'UserInfo/userAdd');
  27. Route::rule('userall', 'UserInfo/userAll');
  28. Route::rule('userDelete', 'UserInfo/userDelete');
  29. Route::rule('userlistbycompany', 'UserInfo/UserListByCompany');
  30. Route::rule('passSetByPassword', 'UserInfo/passSetByPassword');
  31. Route::rule('get_company_list', 'UserInfo/getCompanyList');
  32. Route::rule('check_has_account_by_supplierNos', 'UserInfo/checkHasAccountBySupplierNos');
  33. //【公司账号管理】
  34. Route::rule('userCompanyBasicAdd', 'UserCompanyBasic/add');
  35. Route::rule('userCompanyBasicList', 'UserCompanyBasic/getList');
  36. Route::rule('userCompanyBasicDelete', 'UserCompanyBasic/delete');
  37. Route::rule('userCompanyBasicUpdate', 'UserCompanyBasic/update');
  38. Route::rule('userCompanyBasicStatus', 'UserCompanyBasic/status');
  39. Route::rule('userCompanyBasicInfo', 'UserCompanyBasic/info');
  40. //【公司账号查询】
  41. Route::rule('userCompanyList', 'admin/UserCompany/getList');
  42. Route::rule('userCompanyInfo', 'admin/UserCompany/info');
  43. Route::rule('userCompanyUpdate', 'admin/UserCompany/update');
  44. Route::rule('userCompanyStatus', 'admin/UserCompany/status');
  45. Route::rule('changeMain', 'admin/UserCompany/changeMain');
  46. //公司汇总
  47. Route::rule('hqAdd', 'Headquarters/add');
  48. Route::rule('hqList', 'Headquarters/getList');
  49. Route::rule('hqUpdate', 'Headquarters/update');
  50. Route::rule('hqInfo', 'Headquarters/info');
  51. Route::rule('bGetList', 'Headquarters/bGetList');
  52. Route::rule('bCreate', 'Headquarters/bCreate');
  53. Route::rule('bInfo', 'Headquarters/bInfo');
  54. Route::rule('bEdit', 'Headquarters/bEdit');
  55. Route::rule('bTitle', 'Headquarters/bTitle');
  56. Route::rule('sGetList', 'Headquarters/sGetList');
  57. Route::rule('sCreate', 'Headquarters/sCreate');
  58. Route::rule('sInfo', 'Headquarters/sInfo');
  59. Route::rule('sEdit', 'Headquarters/sEdit');
  60. Route::rule('cInfo', 'Headquarters/cInfo');
  61. Route::rule('cTitle', 'Headquarters/cTitle');
  62. Route::rule('cCreate', 'Headquarters/cCreate');
  63. Route::rule('cList', 'Headquarters/cList');
  64. Route::rule('cEdit', 'Headquarters/cEdit');
  65. Route::rule('delete', 'Headquarters/delete');
  66. Route::rule('status', 'Headquarters/status');
  67. Route::rule('getCodeAndName', 'Headquarters/getCodeAndName');
  68. Route::rule('supplerUpgrade', 'Headquarters/supplerUpgrade');
  69. Route::rule('get_business_list_tmp', 'Headquarters/getBusinessListTmp');
  70. //组织
  71. Route::rule('customer_org_create', 'CustomerOrg/create');
  72. Route::rule('customer_org_list', 'CustomerOrg/list');
  73. Route::rule('customer_org_update', 'CustomerOrg/update');
  74. Route::rule('customer_org_info', 'CustomerOrg/info');
  75. Route::rule('customer_org_delete', 'CustomerOrg/delete');
  76. Route::rule('customer_org_status', 'CustomerOrg/status');
  77. Route::rule('get_top_customer_org', 'CustomerOrg/getTopCustomerOrg');
  78. //组织架构
  79. Route::rule('ulist', 'CompanyItem/getList');
  80. Route::rule('add', 'CompanyItem/add');
  81. Route::rule('refresh', 'CompanyItem/update');
  82. Route::rule('itemdel', 'CompanyItem/delete');
  83. Route::rule('stat', 'CompanyItem/status');
  84. Route::rule('userp', 'CompanyItem/userp');
  85. Route::rule('query', 'CompanyItem/query');
  86. Route::rule('get_part', 'CompanyItem/getPart');
  87. Route::rule('ciinfo', 'CompanyItem/info');
  88. Route::rule('get_company_name_by_uid', 'CompanyItem/getCompanyNameByUid');//获取用户id对应的部门名称
  89. Route::rule('get_company_item_user_by_name', 'CompanyItem/getCompanyItemUserByName');//获取部门名称下的所有用户
  90. Route::rule("webAuth","WeChat/WebAuth");
  91. Route::rule("getConfig","WeChat/getConfig");