app.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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('userlist', 'UserInfo/UserList');
  17. Route::rule('usersave', 'UserInfo/UserSave');
  18. Route::rule('userstatus', 'UserInfo/UserStatus');
  19. Route::rule('userinfo', 'UserInfo/info');
  20. Route::rule('setpasswd', 'UserInfo/PassSet');
  21. Route::rule('setcompany', 'UserInfo/setCompany');
  22. Route::rule('companystatus', 'UserInfo/setCompanyStatus');
  23. Route::rule('useradd', 'UserInfo/userAdd');
  24. Route::rule('userall', 'UserInfo/userAll');
  25. //Route::rule('add_admin_account', 'UserInfo/addAdminAccount');
  26. //Route::rule('add_supplier_account', 'UserInfo/addSupplierAccount');
  27. Route::rule('userDelete', 'UserInfo/userDelete');
  28. Route::rule('userlistbycompany', 'UserInfo/UserListByCompany');
  29. Route::rule('passSetByPassword', 'UserInfo/passSetByPassword');
  30. Route::rule('get_company_list', 'UserInfo/getCompanyList');
  31. Route::rule('check_has_account_by_supplierNos', 'UserInfo/checkHasAccountBySupplierNos');
  32. //【公司账号管理】
  33. Route::rule('userCompanyBasicAdd', 'UserCompanyBasic/add');
  34. Route::rule('userCompanyBasicList', 'UserCompanyBasic/getList');
  35. Route::rule('userCompanyBasicDelete', 'UserCompanyBasic/delete');
  36. Route::rule('userCompanyBasicUpdate', 'UserCompanyBasic/update');
  37. Route::rule('userCompanyBasicStatus', 'UserCompanyBasic/status');
  38. Route::rule('userCompanyBasicInfo', 'UserCompanyBasic/info');
  39. //【公司账号查询】
  40. Route::rule('userCompanyList', 'admin/UserCompany/getList');
  41. Route::rule('userCompanyInfo', 'admin/UserCompany/info');
  42. Route::rule('userCompanyUpdate', 'admin/UserCompany/update');
  43. Route::rule('userCompanyStatus', 'admin/UserCompany/status');
  44. Route::rule('changeMain', 'admin/UserCompany/changeMain');
  45. //公司汇总
  46. Route::rule('hqAdd', 'Headquarters/add');
  47. Route::rule('hqList', 'Headquarters/getList');
  48. Route::rule('hqUpdate', 'Headquarters/update');
  49. Route::rule('hqInfo', 'Headquarters/info');
  50. Route::rule('bGetList', 'Headquarters/bGetList');
  51. Route::rule('bCreate', 'Headquarters/bCreate');
  52. Route::rule('bInfo', 'Headquarters/bInfo');
  53. Route::rule('bEdit', 'Headquarters/bEdit');
  54. Route::rule('bTitle', 'Headquarters/bTitle');
  55. Route::rule('sGetList', 'Headquarters/sGetList');
  56. Route::rule('sCreate', 'Headquarters/sCreate');
  57. Route::rule('sInfo', 'Headquarters/sInfo');
  58. Route::rule('sEdit', 'Headquarters/sEdit');
  59. Route::rule('cInfo', 'Headquarters/cInfo');
  60. Route::rule('cTitle', 'Headquarters/cTitle');
  61. Route::rule('cCreate', 'Headquarters/cCreate');
  62. Route::rule('cList', 'Headquarters/cList');
  63. Route::rule('cEdit', 'Headquarters/cEdit');
  64. Route::rule('delete', 'Headquarters/delete');
  65. Route::rule('status', 'Headquarters/status');
  66. Route::rule('getCodeAndName', 'Headquarters/getCodeAndName');
  67. Route::rule('supplerUpgrade', 'Headquarters/supplerUpgrade');
  68. Route::rule('get_business_list_tmp', 'Headquarters/getBusinessListTmp');
  69. //组织
  70. Route::rule('customer_org_create', 'CustomerOrg/create');
  71. Route::rule('customer_org_list', 'CustomerOrg/list');
  72. Route::rule('customer_org_update', 'CustomerOrg/update');
  73. Route::rule('customer_org_info', 'CustomerOrg/info');
  74. Route::rule('customer_org_delete', 'CustomerOrg/delete');
  75. Route::rule('customer_org_status', 'CustomerOrg/status');
  76. Route::rule('get_top_customer_org', 'CustomerOrg/getTopCustomerOrg');
  77. //组织架构
  78. Route::rule('ulist', 'CompanyItem/getList');
  79. Route::rule('add', 'CompanyItem/add');
  80. Route::rule('refresh', 'CompanyItem/update');
  81. Route::rule('itemdel', 'CompanyItem/delete');
  82. Route::rule('stat', 'CompanyItem/status');
  83. Route::rule('userp', 'CompanyItem/userp');
  84. Route::rule('query', 'CompanyItem/query');
  85. Route::rule('get_part', 'CompanyItem/getPart');
  86. Route::rule('ciinfo', 'CompanyItem/info');
  87. Route::rule('get_company_name_by_uid', 'CompanyItem/getCompanyNameByUid');//获取用户id对应的部门名称
  88. Route::rule('get_company_item_user_by_name', 'CompanyItem/getCompanyItemUserByName');//获取部门名称下的所有用户