You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
7.2 KiB

  1. package model
  2. type CasbinModel struct {
  3. Ptype string `json:"ptype" gorm:"column:p_type"`
  4. AuthorityId string `json:"rolename" gorm:"column:v0"`
  5. Path string `json:"path" gorm:"column:v1"`
  6. Method string `json:"method" gorm:"column:v2"`
  7. }
  8. func CasbinModelData() []CasbinModel {
  9. return []CasbinModel{
  10. {"p", "888", "/base/login", "POST"},
  11. {"p", "888", "/base/register", "POST"},
  12. {"p", "888", "/api/createApi", "POST"},
  13. {"p", "888", "/api/getApiList", "POST"},
  14. {"p", "888", "/api/getApiById", "POST"},
  15. {"p", "888", "/api/deleteApi", "POST"},
  16. {"p", "888", "/api/updateApi", "POST"},
  17. {"p", "888", "/api/getAllApis", "POST"},
  18. {"p", "888", "/authority/createAuthority", "POST"},
  19. {"p", "888", "/authority/deleteAuthority", "POST"},
  20. {"p", "888", "/authority/getAuthorityList", "POST"},
  21. {"p", "888", "/authority/setDataAuthority", "POST"},
  22. {"p", "888", "/authority/updateAuthority", "PUT"},
  23. {"p", "888", "/authority/copyAuthority", "POST"},
  24. {"p", "888", "/menu/getMenu", "POST"},
  25. {"p", "888", "/menu/getMenuList", "POST"},
  26. {"p", "888", "/menu/addBaseMenu", "POST"},
  27. {"p", "888", "/menu/getBaseMenuTree", "POST"},
  28. {"p", "888", "/menu/addMenuAuthority", "POST"},
  29. {"p", "888", "/menu/getMenuAuthority", "POST"},
  30. {"p", "888", "/menu/deleteBaseMenu", "POST"},
  31. {"p", "888", "/menu/updateBaseMenu", "POST"},
  32. {"p", "888", "/menu/getBaseMenuById", "POST"},
  33. {"p", "888", "/user/changePassword", "POST"},
  34. {"p", "888", "/user/getUserList", "POST"},
  35. {"p", "888", "/user/setUserAuthority", "POST"},
  36. {"p", "888", "/user/deleteUser", "DELETE"},
  37. {"p", "888", "/fileUploadAndDownload/upload", "POST"},
  38. {"p", "888", "/fileUploadAndDownload/getFileList", "POST"},
  39. {"p", "888", "/fileUploadAndDownload/deleteFile", "POST"},
  40. {"p", "888", "/casbin/updateCasbin", "POST"},
  41. {"p", "888", "/casbin/getPolicyPathByAuthorityId", "POST"},
  42. {"p", "888", "/casbin/casbinTest/:pathParam", "GET"},
  43. {"p", "888", "/jwt/jsonInBlacklist", "POST"},
  44. {"p", "888", "/system/getSystemConfig", "POST"},
  45. {"p", "888", "/system/setSystemConfig", "POST"},
  46. {"p", "888", "/customer/customer", "POST"},
  47. {"p", "888", "/customer/customer", "PUT"},
  48. {"p", "888", "/customer/customer", "DELETE"},
  49. {"p", "888", "/customer/customer", "GET"},
  50. {"p", "888", "/customer/customerList", "GET"},
  51. {"p", "888", "/autoCode/createTemp", "POST"},
  52. {"p", "888", "/autoCode/getTables", "GET"},
  53. {"p", "888", "/autoCode/getDB", "GET"},
  54. {"p", "888", "/autoCode/getColume", "GET"},
  55. {"p", "888", "/sysDictionaryDetail/createSysDictionaryDetail", "POST"},
  56. {"p", "888", "/sysDictionaryDetail/deleteSysDictionaryDetail", "DELETE"},
  57. {"p", "888", "/sysDictionaryDetail/updateSysDictionaryDetail", "PUT"},
  58. {"p", "888", "/sysDictionaryDetail/findSysDictionaryDetail", "GET"},
  59. {"p", "888", "/sysDictionaryDetail/getSysDictionaryDetailList", "GET"},
  60. {"p", "888", "/sysDictionary/createSysDictionary", "POST"},
  61. {"p", "888", "/sysDictionary/deleteSysDictionary", "DELETE"},
  62. {"p", "888", "/sysDictionary/updateSysDictionary", "PUT"},
  63. {"p", "888", "/sysDictionary/findSysDictionary", "GET"},
  64. {"p", "888", "/sysDictionary/getSysDictionaryList", "GET"},
  65. {"p", "888", "/sysOperationRecord/createSysOperationRecord", "POST"},
  66. {"p", "888", "/sysOperationRecord/deleteSysOperationRecord", "DELETE"},
  67. {"p", "888", "/sysOperationRecord/updateSysOperationRecord", "PUT"},
  68. {"p", "888", "/sysOperationRecord/findSysOperationRecord", "GET"},
  69. {"p", "888", "/sysOperationRecord/getSysOperationRecordList", "GET"},
  70. {"p", "888", "/sysOperationRecord/deleteSysOperationRecordByIds", "DELETE"},
  71. {"p", "888", "/user/setUserInfo", "PUT"},
  72. {"p", "8881", "/base/login", "POST"},
  73. {"p", "8881", "/base/register", "POST"},
  74. {"p", "8881", "/api/createApi", "POST"},
  75. {"p", "8881", "/api/getApiList", "POST"},
  76. {"p", "8881", "/api/getApiById", "POST"},
  77. {"p", "8881", "/api/deleteApi", "POST"},
  78. {"p", "8881", "/api/updateApi", "POST"},
  79. {"p", "8881", "/api/getAllApis", "POST"},
  80. {"p", "8881", "/authority/createAuthority", "POST"},
  81. {"p", "8881", "/authority/deleteAuthority", "POST"},
  82. {"p", "8881", "/authority/getAuthorityList", "POST"},
  83. {"p", "8881", "/authority/setDataAuthority", "POST"},
  84. {"p", "8881", "/menu/getMenu", "POST"},
  85. {"p", "8881", "/menu/getMenuList", "POST"},
  86. {"p", "8881", "/menu/addBaseMenu", "POST"},
  87. {"p", "8881", "/menu/getBaseMenuTree", "POST"},
  88. {"p", "8881", "/menu/addMenuAuthority", "POST"},
  89. {"p", "8881", "/menu/getMenuAuthority", "POST"},
  90. {"p", "8881", "/menu/deleteBaseMenu", "POST"},
  91. {"p", "8881", "/menu/updateBaseMenu", "POST"},
  92. {"p", "8881", "/menu/getBaseMenuById", "POST"},
  93. {"p", "8881", "/user/changePassword", "POST"},
  94. {"p", "8881", "/user/getUserList", "POST"},
  95. {"p", "8881", "/user/setUserAuthority", "POST"},
  96. {"p", "8881", "/fileUploadAndDownload/upload", "POST"},
  97. {"p", "8881", "/fileUploadAndDownload/getFileList", "POST"},
  98. {"p", "8881", "/fileUploadAndDownload/deleteFile", "POST"},
  99. {"p", "8881", "/casbin/updateCasbin", "POST"},
  100. {"p", "8881", "/casbin/getPolicyPathByAuthorityId", "POST"},
  101. {"p", "8881", "/jwt/jsonInBlacklist", "POST"},
  102. {"p", "8881", "/system/getSystemConfig", "POST"},
  103. {"p", "8881", "/system/setSystemConfig", "POST"},
  104. {"p", "8881", "/customer/customer", "POST"},
  105. {"p", "8881", "/customer/customer", "PUT"},
  106. {"p", "8881", "/customer/customer", "DELETE"},
  107. {"p", "8881", "/customer/customer", "GET"},
  108. {"p", "8881", "/customer/customerList", "GET"},
  109. {"p", "9528", "/base/login", "POST"},
  110. {"p", "9528", "/base/register", "POST"},
  111. {"p", "9528", "/api/createApi", "POST"},
  112. {"p", "9528", "/api/getApiList", "POST"},
  113. {"p", "9528", "/api/getApiById", "POST"},
  114. {"p", "9528", "/api/deleteApi", "POST"},
  115. {"p", "9528", "/api/updateApi", "POST"},
  116. {"p", "9528", "/api/getAllApis", "POST"},
  117. {"p", "9528", "/authority/createAuthority", "POST"},
  118. {"p", "9528", "/authority/deleteAuthority", "POST"},
  119. {"p", "9528", "/authority/getAuthorityList", "POST"},
  120. {"p", "9528", "/authority/setDataAuthority", "POST"},
  121. {"p", "9528", "/menu/getMenu", "POST"},
  122. {"p", "9528", "/menu/getMenuList", "POST"},
  123. {"p", "9528", "/menu/addBaseMenu", "POST"},
  124. {"p", "9528", "/menu/getBaseMenuTree", "POST"},
  125. {"p", "9528", "/menu/addMenuAuthority", "POST"},
  126. {"p", "9528", "/menu/getMenuAuthority", "POST"},
  127. {"p", "9528", "/menu/deleteBaseMenu", "POST"},
  128. {"p", "9528", "/menu/updateBaseMenu", "POST"},
  129. {"p", "9528", "/menu/getBaseMenuById", "POST"},
  130. {"p", "9528", "/user/changePassword", "POST"},
  131. {"p", "9528", "/user/getUserList", "POST"},
  132. {"p", "9528", "/user/setUserAuthority", "POST"},
  133. {"p", "9528", "/fileUploadAndDownload/upload", "POST"},
  134. {"p", "9528", "/fileUploadAndDownload/getFileList", "POST"},
  135. {"p", "9528", "/fileUploadAndDownload/deleteFile", "POST"},
  136. {"p", "9528", "/casbin/updateCasbin", "POST"},
  137. {"p", "9528", "/casbin/getPolicyPathByAuthorityId", "POST"},
  138. {"p", "9528", "/jwt/jsonInBlacklist", "POST"},
  139. {"p", "9528", "/system/getSystemConfig", "POST"},
  140. {"p", "9528", "/system/setSystemConfig", "POST"},
  141. {"p", "9528", "/customer/customer", "POST"},
  142. {"p", "9528", "/customer/customer", "PUT"},
  143. {"p", "9528", "/customer/customer", "DELETE"},
  144. {"p", "9528", "/customer/customer", "GET"},
  145. {"p", "9528", "/customer/customerList", "GET"},
  146. {"p", "9528", "/autoCode/createTemp", "POST"},
  147. }
  148. }