light-apiengine.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <application xmlns="http://qianqiusoft.com/developer"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://qianqiusoft.com/developer"
  5. name="light-apiengine"
  6. desc="千秋开发平台"
  7. packagename="git.qianqiusoft.com/qianqiusoft/light-apiengine">
  8. <controllers>
  9. <controller name="sso" desc="用户单点登录功能" skip_login="true">
  10. <api name="login" desc="用户登录" method="post,get,put">
  11. <param name="logininfo" ref="$login_info" desc="登录信息"></param>
  12. <return>
  13. <success ref="$sys_return"></success>
  14. <failure ref="$sys_return"></failure>
  15. </return>
  16. </api>
  17. <api name="logout" desc="用户退出" method="post,get">
  18. <return>
  19. <success ref="$sys_return"></success>
  20. <failure ref="$sys_return"></failure>
  21. </return>
  22. </api>
  23. <api name="token_validate" desc="token验证" method="post,get">
  24. <param name="token" type="string" desc="token"></param>
  25. <return>
  26. <success ref="$sys_return"></success>
  27. <failure ref="$sys_return"></failure>
  28. </return>
  29. </api>
  30. </controller>
  31. <controller name="sys_attachment" desc="系统管理">
  32. <api name="upload" desc="上传文件" method="post">
  33. <return>
  34. <success ref="$sys_return"></success>
  35. <failure ref="$sys_return"></failure>
  36. </return>
  37. </api>
  38. <api name="download" desc="下载文件" method="get">
  39. <param name="id" type="string" desc="文件ID"></param>
  40. <return>
  41. <success ref="$sys_return"></success>
  42. <failure ref="$sys_return"></failure>
  43. </return>
  44. </api>
  45. <api name="delete" desc="删除文件" method="get">
  46. <param name="id" type="string" desc="文件ID"></param>
  47. <return>
  48. <success ref="$sys_return"></success>
  49. <failure ref="$sys_return"></failure>
  50. </return>
  51. </api>
  52. </controller>
  53. <controller name="system" desc="系统管理">
  54. <api name="sidebar" function="tree" table="sys_menu" desc="获取导航菜单" method="post,get">
  55. <param name="user" type="string" desc="用户id"/>
  56. <return>
  57. <success ref="$sys_return"></success>
  58. <failure ref="$sys_return"></failure>
  59. </return>
  60. </api>
  61. <api name="find_user_page" desc="获取用户分页数" function="page" table="sys_user" method="get,post" >
  62. </api>
  63. <api name="get_org_tree" desc="获取组织架构树" function="tree" table="sys_org" method="get,post" >
  64. </api>
  65. <api name="get_menu_tree" desc="获取菜单树" function="tree" table="sys_menu" method="get,post" >
  66. </api>
  67. <api name="get_domain_tree" desc="获取菜单树" function="tree" table="sys_domain" method="get,post" >
  68. </api>
  69. <api name="find_org_page" desc="获取组织架构分页数" function="page" table="sys_org" method="get,post" >
  70. </api>
  71. <api name="find_role_page" desc="获取角色分页数" function="page" table="sys_role" method="get,post" >
  72. </api>
  73. <api name="find_menu_page" desc="获取菜单分页数" function="page" table="sys_menu" method="get,post" >
  74. </api>
  75. <api name="find_domain_page" desc="获取菜单分页数" function="page" table="sys_domain" method="get,post" >
  76. </api>
  77. <api name="add_user" desc="添加用户" method="post,get,put">
  78. <param name="login_id" type="string" desc="登录ID"/>
  79. <param name="password" type="string" desc="密码"/>
  80. <param name="org_id" type="string" desc="组织ID"/>
  81. <param name="email" type="string" desc="邮箱"/>
  82. <return>
  83. <success ref="$sys_return"></success>
  84. <failure ref="$sys_return"></failure>
  85. </return>
  86. </api>
  87. <api name="del_user" desc="删除用户" method="post,get,put">
  88. <param name="id" type="string" desc="用户ID"/>
  89. <return>
  90. <success ref="$sys_return"></success>
  91. <failure ref="$sys_return"></failure>
  92. </return>
  93. </api>
  94. <api name="update_user" desc="修改用户" method="post,get,put">
  95. <param name="login_id" type="string" desc="登录ID"/>
  96. <param name="password" type="string" desc="密码"/>
  97. <param name="org_id" type="string" desc="组织ID"/>
  98. <param name="email" type="string" desc="邮箱"/>
  99. <return>
  100. <success ref="$sys_return"></success>
  101. <failure ref="$sys_return"></failure>
  102. </return>
  103. </api>
  104. <api name="get_user" desc="更加用户ID获取用户信息" method="get">
  105. <param name="user_id" type="string" desc="用户ID"/>
  106. <return>
  107. <success ref="$sys_return"></success>
  108. <failure ref="$sys_return"></failure>
  109. </return>
  110. </api>
  111. <api name="add_role" desc="添加角色" method="post,get,put">
  112. <param name="name" type="string" desc="角色名称"/>
  113. <param name="remark" type="string" desc="备注"/>
  114. <return>
  115. <success ref="$sys_return"></success>
  116. <failure ref="$sys_return"></failure>
  117. </return>
  118. </api>
  119. <api name="del_role" desc="添加角色" method="post,get,put">
  120. <param name="id" type="string" desc="角色ID"/>
  121. <return>
  122. <success ref="$sys_return"></success>
  123. <failure ref="$sys_return"></failure>
  124. </return>
  125. </api>
  126. <api name="update_role" desc="修改角色" method="post,get,put">
  127. <param name="id" type="string" desc="角色ID"/>
  128. <param name="name" type="string" desc="角色名称"/>
  129. <param name="remark" type="string" desc="备注"/>
  130. <return>
  131. <success ref="$sys_return"></success>
  132. <failure ref="$sys_return"></failure>
  133. </return>
  134. </api>
  135. <api name="find_role_menu" desc="查找角色权限" method="post,get,put">
  136. <param name="role_id" type="string" desc="角色id"/>
  137. <return>
  138. <success ref="$sys_return"></success>
  139. <failure ref="$sys_return"></failure>
  140. </return>
  141. </api>
  142. <api name="save_role_menu" desc="保存角色权限" method="post,get,put">
  143. <param name="role_menu" ref="$save_role_menu array" type="string" desc="角色权限"/>
  144. <return>
  145. <success ref="$sys_return"></success>
  146. <failure ref="$sys_return"></failure>
  147. </return>
  148. </api>
  149. <api name="role_all" desc="查找所有角色" method="post,get,put">
  150. <return>
  151. <success ref="$sys_return"></success>
  152. <failure ref="$sys_return"></failure>
  153. </return>
  154. </api>
  155. <api name="find_permissions" desc="查找用户权限" method="post,get,put">
  156. <return>
  157. <success ref="$sys_return"></success>
  158. <failure ref="$sys_return"></failure>
  159. </return>
  160. </api>
  161. <api name="add_menu" desc="添加菜单" method="post,get,put">
  162. <param name="" ref="$sys_menu" type="string" desc="菜单"/>
  163. <return>
  164. <success ref="$sys_return"></success>
  165. <failure ref="$sys_return"></failure>
  166. </return>
  167. </api>
  168. <api name="del_menu" desc="删除菜单" method="post,get,put">
  169. <param name="id" type="string" desc="菜单ID"/>
  170. <return>
  171. <success ref="$sys_return"></success>
  172. <failure ref="$sys_return"></failure>
  173. </return>
  174. </api>
  175. <api name="update_menu" desc="更新菜单" method="post,get,put">
  176. <param name="" ref="$sys_menu" type="string" desc="菜单"/>
  177. <return>
  178. <success ref="$sys_return"></success>
  179. <failure ref="$sys_return"></failure>
  180. </return>
  181. </api>
  182. <api name="add_org" desc="添加组织" method="post,get,put">
  183. <param name="" ref="$sys_org" type="string" desc="组织"/>
  184. <return>
  185. <success ref="$sys_return"></success>
  186. <failure ref="$sys_return"></failure>
  187. </return>
  188. </api>
  189. <api name="del_org" desc="删除组织" method="post,get,put">
  190. <param name="id" type="string" desc="组织ID"/>
  191. <return>
  192. <success ref="$sys_return"></success>
  193. <failure ref="$sys_return"></failure>
  194. </return>
  195. </api>
  196. <api name="update_org" desc="更新组织" method="post,get,put">
  197. <param name="" ref="$sys_org" type="string" desc="组织"/>
  198. <return>
  199. <success ref="$sys_return"></success>
  200. <failure ref="$sys_return"></failure>
  201. </return>
  202. </api>
  203. <api name="get_org_by_userid" desc="根据用户id获取用户组织" method="post,get">
  204. <param name="user_id" type="string" desc="用户id"/>
  205. <return>
  206. <success ref="$sys_return"></success>
  207. <failure ref="$sys_return"></failure>
  208. </return>
  209. </api>
  210. <api name="add_domain" desc="添加域" method="post,get,put">
  211. <param name="" ref="$sys_domain" desc="域"/>
  212. <return>
  213. <success ref="$sys_return"></success>
  214. <success ref="$sys_return"></success>
  215. <failure ref="$sys_return"></failure>
  216. </return>
  217. </api>
  218. <api name="del_domain" desc="删除域" method="post,get,put">
  219. <param name="id" type="string" desc="域ID"/>
  220. <return>
  221. <success ref="$sys_return"></success>
  222. <failure ref="$sys_return"></failure>
  223. </return>
  224. </api>
  225. <api name="update_domain" desc="修改域" method="post,get,put">
  226. <param name="" ref="$sys_domain" desc="域"/>
  227. <return>
  228. <success ref="$sys_return"></success>
  229. <failure ref="$sys_return"></failure>
  230. </return>
  231. </api>
  232. <api name="add_domain_menu" desc="域添加菜单" method="post,get,put">
  233. <param name="" ref="$add_domain_menu" desc="添加域菜单bean"/>
  234. <return>
  235. <success ref="$sys_return"></success>
  236. <failure ref="$sys_return"></failure>
  237. </return>
  238. </api>
  239. <api name="get_domain_menu_tree" desc="域添加菜单" method="get,put">
  240. <param name="domain_id" type="string" desc="域id"/>
  241. <return>
  242. <success ref="$sys_return"></success>
  243. <failure ref="$sys_return"></failure>
  244. </return>
  245. </api>
  246. <api name="get_role_menu_tree" desc="获取角色权限菜单" method="get">
  247. <param name="role_id" type="string" desc="角色id"/>
  248. <return>
  249. <success ref="$sys_return"></success>
  250. <failure ref="$sys_return"></failure>
  251. </return>
  252. </api>
  253. <api name="add_role_menu" desc="添加角色菜单" method="post">
  254. <param name="menu_id" ref="string array" desc="菜单id"/>
  255. <param name="role_id" type="string" desc="角色id"/>
  256. <return>
  257. <success ref="$sys_return"></success>
  258. <failure ref="$sys_return"></failure>
  259. </return>
  260. </api>
  261. </controller>
  262. <controller name="api" desc="api接口">
  263. <api name="api_doc" method="get" desc="api文档">
  264. <param name="sys" desc="是否包含用户管理相关接口" type="string"></param>
  265. </api>
  266. </controller>
  267. </controllers>
  268. <beans>
  269. <bean name="sys_org_tree" desc="组织架构" inher="$sys_org">
  270. <prop name="children" caption="子列表" type="$sys_org_tree array" />
  271. </bean>
  272. <bean name="user_info" desc="用户信息" inher="$sys_user">
  273. <prop name="org_name" caption="部门名称" type="string" />
  274. <prop name="role_name" caption="角色名称" type="string" />
  275. <prop name="user_role" caption="用户角色" type="$sys_user_role array" />
  276. </bean>
  277. <bean name="login_info" desc="登录信息">
  278. <prop name="account" caption="用户id" type="string" />
  279. <prop name="password" caption="密码" type="string" />
  280. <prop name="captcha" caption="验证码" type="string" />
  281. </bean>
  282. <bean name="login_return_info" desc="登录信息" inher="$sys_user">
  283. <prop name="token" caption="token" type="string" />
  284. </bean>
  285. <bean name="sys_user_page_info">
  286. <prop name="pageNum" caption="页码" type="int" />
  287. <prop name="pageSize" caption="单页数" type="int" />
  288. <prop name="totalSize" caption="总页数" type="int" />
  289. <prop name="content" caption="内容" type="$user_info array" />
  290. </bean>
  291. <bean name="sys_return" desc="系统返回">
  292. <prop name="code" caption="代码" type="int32" />
  293. <prop name="msg" caption="描述" type="string" />
  294. <prop name="data" caption="数据" type="interface{}" />
  295. </bean>
  296. <bean name="sys_role_page_info">
  297. <prop name="pageNum" caption="页码" type="int" />
  298. <prop name="pageSize" caption="单页数" type="int" />
  299. <prop name="totalSize" caption="总页数" type="int" />
  300. <prop name="content" caption="内容" type="$sys_role array" />
  301. </bean>
  302. <bean name="save_role_menu" desc="保存角色权限参数">
  303. <prop name="role_id" caption="角色ID" type="string" />
  304. <prop name="menu_id" caption="菜单ID" type="string" />
  305. </bean>
  306. <bean name="storage_result" desc="附件返回">
  307. <prop name="result" caption="result" type="string" />
  308. <prop name="ip" caption="ip" type="string" />
  309. <prop name="port" caption="port" type="string" />
  310. <prop name="id" caption="id" type="string" />
  311. <prop name="hash" caption="hash" type="string" />
  312. <prop name="len" caption="len" type="int32" />
  313. <prop name="error" caption="error" type="string" />
  314. </bean>
  315. <bean name="page_result" desc="分页结果">
  316. <prop name="page" caption="页码" type="int" />
  317. <prop name="rows" caption="单页数" type="int" />
  318. <prop name="totalSize" caption="总数" type="int64" />
  319. <prop name="totalPageSize" caption="总页数" type="int64"/>
  320. <prop name="content" caption="内容" type="interface{}" />
  321. </bean>
  322. <bean name="tree_node" desc="树结点">
  323. <prop name="id" caption="ID" type="string" />
  324. <prop name="text" caption="标题" type="string" />
  325. <prop name="parent" caption="父结点" type="string" />
  326. <prop name="nodes" caption="子结点" type="*TreeNode array" />
  327. <prop name="tag" caption="tag" type="interface{}" />
  328. </bean>
  329. <bean name="add_domain_menu" desc="添加域菜单">
  330. <prop name="domain_id" caption="域名ID" type="string" />
  331. <prop name="menus" caption="菜单" type="string array" />
  332. </bean>
  333. </beans>
  334. <tables>
  335. <table name="sys_user" desc="用户表">
  336. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  337. type="string" size="36">
  338. <auto value="$uuid" update="false">
  339. </auto>
  340. </column>
  341. <column isNull="false" name="login_id" caption="登录ID" type="string" dbtype="varchar(36)" size="36" />
  342. <column isNull="false" name="password" caption="密码" type="string" size="36" dbtype="varchar(36)"/>
  343. <column isNull="false" name="name" caption="名字" type="string" size="36" dbtype="varchar(36)"/>
  344. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  345. <column isNull="false" name="mobile" caption="电话" type="string" size="50" dbtype="varchar(50)"/>
  346. <column isNull="false" name="email" caption="邮箱" type="string" size="50" dbtype="varchar(50)"/>
  347. <column isNull="false" name="org_id" caption="组织ID" type="string" size="36" dbtype="varchar(36)"/>
  348. <column name="gender" caption="性别 0:女 1:男 " type="int32"/>
  349. <column name="type" caption="用户类型" type="int32"/>
  350. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  351. <column isNull="false" name="avatar" caption="头像" type="string" size="255" dbtype="varchar(255)"/>
  352. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  353. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  354. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  355. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  356. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  357. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  358. </table>
  359. <table name="sys_org" desc="组织架构">
  360. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  361. type="string" size="36">
  362. <auto value="$uuid" update="false">
  363. </auto>
  364. </column>
  365. <column isNull="true" name="parent" caption="上级组织" type="string" size="36" dbtype="varchar(36)" />
  366. <column isNull="true" name="inheritance" caption="继承关系" type="string" size="500" dbtype="varchar(500)"/>
  367. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  368. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  369. <column isNull="false" name="leader" caption="领导人" type="string" size="36" dbtype="varchar(36)"/>
  370. <column name="type" caption="组织类型" type="int32"/>
  371. <column name="order" caption="排序" type="int32"/>
  372. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  373. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  374. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  375. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  376. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  377. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  378. </table>
  379. <table name="sys_role" desc="用户角色">
  380. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  381. type="string" size="36">
  382. <auto value="$uuid" update="false">
  383. </auto>
  384. </column>
  385. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  386. <column isNull="false" name="code" caption="编码" type="string" size="36" dbtype="varchar(36)"/>
  387. <column name="remark" caption="备注" type="string" size="100" dbtype="varchar(100)"/>
  388. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  389. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  390. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  391. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  392. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  393. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  394. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  395. </table>
  396. <table name="sys_user_role" desc="用户与角色对应">
  397. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  398. type="string" size="36">
  399. <auto value="$uuid" update="false">
  400. </auto>
  401. </column>
  402. <column isNull="false" name="user_id" caption="用户ID" type="string" size="36" dbtype="varchar(36)"/>
  403. <column isNull="false" name="role_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  404. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  405. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  406. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  407. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  408. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  409. </table>
  410. <table name="sys_menu" desc="系统菜单">
  411. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  412. type="string" size="36">
  413. <auto value="$uuid" update="false">
  414. </auto>
  415. </column>
  416. <column isNull="false" name="name" caption="菜单名称" type="string" size="36" dbtype="varchar(36)"/>
  417. <column isNull="false" name="code" caption="编码" type="string" size="36" dbtype="varchar(36)"/>
  418. <column isNull="true" name="parent" caption="父菜单ID,一级菜单为null" type="string" size="36" dbtype="varchar(36)"/>
  419. <column isNull="true" name="inheritance" caption="继承关系" type="string" size="500" dbtype="varchar(500)"/>
  420. <column name="url" type="string" size="200" dbtype="varchar(200)" caption="菜单URL,类型:1.普通页面(如用户管理, /sys/user) 2.嵌套完整外部页面,以http(s)开头的链接 3.嵌套服务器页面,使用iframe:前缀+目标URL(如SQL监控, iframe:/druid/login.html, iframe:前缀会替换成服务器地址)"/>
  421. <column name="component" type="string" size="100" dbtype="varchar(100)" caption="菜单组件"/>
  422. <column isNull="true" name="perms" caption="授权(多个用逗号分隔,如:sys:user:add,sys:user:edit)" type="string" size="500" dbtype="varchar(500)"/>
  423. <column name="type" caption="类型 0:目录 1:菜单 2:按钮" type="int32"/>
  424. <column isNull="false" name="icon" caption="菜单图标" type="string" size="50" dbtype="varchar(50)"/>
  425. <column isNull="false" name="order_num" caption="排序" type="int32"/>
  426. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  427. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  428. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  429. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  430. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  431. </table>
  432. <table name="sys_role_menu" desc="角色与菜单对应">
  433. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  434. type="string" size="36">
  435. <auto value="$uuid" update="false">
  436. </auto>
  437. </column>
  438. <column isNull="false" name="role_id" caption="用户ID" type="string" size="36" dbtype="varchar(36)"/>
  439. <column isNull="false" name="menu_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  440. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  441. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  442. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  443. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  444. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  445. </table>
  446. <table name="sys_permission" desc="权限表">
  447. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  448. type="string" size="36">
  449. <auto value="$uuid" update="false">
  450. </auto>
  451. </column>
  452. <column isNull="false" name="perms" caption="权限标识" type="string" size="100" dbtype="varchar(100)"/>
  453. <column isNull="false" name="domain" caption="域" type="string" size="50" />
  454. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  455. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  456. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  457. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  458. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  459. </table>
  460. <table name="sys_role_permission" desc="角色权限表">
  461. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  462. type="string" size="36">
  463. <auto value="$uuid" update="false">
  464. </auto>
  465. </column>
  466. <column isNull="false" name="permission_id" caption="权限ID" type="string" size="36" dbtype="varchar(36)"/>
  467. <column isNull="false" name="role_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  468. <column isNull="false" name="domain" caption="域" type="string" size="50" />
  469. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  470. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  471. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  472. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  473. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  474. </table>
  475. <table name="sys_attachment" desc="附件表">
  476. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  477. type="string" size="36">
  478. <auto value="$uuid" update="false">
  479. </auto>
  480. </column>
  481. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  482. <column isNull="false" name="size" caption="大小" type="int32" size="50" />
  483. <column isNull="false" name="ext" caption="ext" type="string" size="36" dbtype="varchar(36)"/>
  484. <column isNull="false" name="hash" caption="哈希值" type="string" />
  485. <column isNull="false" name="url" caption="链接地址" type="string" size="200" dbtype="varchar(200)"/>
  486. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  487. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  488. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  489. </table>
  490. <table name="sys_domain" desc="用户域">
  491. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  492. type="string" size="36">
  493. <auto value="$uuid" update="false">
  494. </auto>
  495. </column>
  496. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  497. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  498. <column isNull="false" name="contact_name" caption="负责人" type="string" size="36" dbtype="varchar(36)"/>
  499. <column isNull="false" name="contact_email" caption="负责人邮箱" type="string" size="50" dbtype="varchar(50)"/>
  500. <column isNull="false" name="contact_mobile" caption="负责人电话" type="string" size="50" dbtype="varchar(50)"/>
  501. <column isNull="false" name="data_source" caption="数据库链接串" type="string" size="200" dbtype="varchar(200)"/>
  502. <column isNull="false" name="domain_url" caption="网址" type="string" size="200" dbtype="varchar(200)"/>
  503. <column isNull="false" name="login_url" caption="登录页" type="string" size="200" dbtype="varchar(200)"/>
  504. <column isNull="false" name="index_url" caption="首页" type="string" size="200" dbtype="varchar(200)"/>
  505. <column isNull="true" name="theme" caption="样式" type="string" size="50" dbtype="varchar(50)"/>
  506. <column name="type" caption="域类型" type="int32"/>
  507. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  508. <column isNull="false" name="sync_flag" caption="是否同步了数据库标志" type="int32"/>
  509. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(36)"/>
  510. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  511. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  512. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  513. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  514. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  515. </table>
  516. </tables>
  517. </application>