light-apiengine.xml 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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. </controller>
  24. <controller name="sys_attachment" desc="系统管理">
  25. <api name="upload" desc="上传文件" method="post">
  26. <return>
  27. <success ref="$sys_return"></success>
  28. <failure ref="$sys_return"></failure>
  29. </return>
  30. </api>
  31. <api name="download" desc="下载文件" method="get">
  32. <param name="id" type="string" desc="文件ID"></param>
  33. <return>
  34. <success ref="$sys_return"></success>
  35. <failure ref="$sys_return"></failure>
  36. </return>
  37. </api>
  38. <api name="delete" 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. </controller>
  46. <controller name="system" desc="系统管理">
  47. <api name="sidebar" function="tree" table="sys_menu" desc="获取导航菜单" method="post,get">
  48. <param name="user" type="string" desc="用户id"/>
  49. <return>
  50. <success ref="$sys_return"></success>
  51. <failure ref="$sys_return"></failure>
  52. </return>
  53. </api>
  54. <api name="find_user_page" desc="获取用户分页数" function="page" table="sys_user" method="get,post" >
  55. </api>
  56. <api name="get_org_tree" desc="获取组织架构树" function="tree" table="sys_org" method="get,post" >
  57. </api>
  58. <api name="get_menu_tree" desc="获取菜单树" function="tree" table="sys_menu" method="get,post" >
  59. </api>
  60. <api name="get_domain_tree" desc="获取菜单树" function="tree" table="sys_domain" method="get,post" >
  61. </api>
  62. <api name="find_org_page" desc="获取组织架构分页数" function="page" table="sys_org" method="get,post" >
  63. </api>
  64. <api name="find_role_page" desc="获取角色分页数" function="page" table="sys_role" method="get,post" >
  65. </api>
  66. <api name="find_menu_page" desc="获取菜单分页数" function="page" table="sys_menu" method="get,post" >
  67. </api>
  68. <api name="find_domain_page" desc="获取菜单分页数" function="page" table="sys_domain" method="get,post" >
  69. </api>
  70. <api name="add_user" desc="添加用户" method="post,get,put">
  71. <param name="login_id" type="string" desc="登录ID"/>
  72. <param name="password" type="string" desc="密码"/>
  73. <param name="org_id" type="string" desc="组织ID"/>
  74. <param name="email" type="string" desc="邮箱"/>
  75. <return>
  76. <success ref="$sys_return"></success>
  77. <failure ref="$sys_return"></failure>
  78. </return>
  79. </api>
  80. <api name="del_user" desc="删除用户" method="post,get,put">
  81. <param name="id" type="string" desc="用户ID"/>
  82. <return>
  83. <success ref="$sys_return"></success>
  84. <failure ref="$sys_return"></failure>
  85. </return>
  86. </api>
  87. <api name="update_user" desc="修改用户" method="post,get,put">
  88. <param name="login_id" type="string" desc="登录ID"/>
  89. <param name="password" type="string" desc="密码"/>
  90. <param name="org_id" type="string" desc="组织ID"/>
  91. <param name="email" type="string" desc="邮箱"/>
  92. <return>
  93. <success ref="$sys_return"></success>
  94. <failure ref="$sys_return"></failure>
  95. </return>
  96. </api>
  97. <api name="add_role" desc="添加角色" method="post,get,put">
  98. <param name="name" type="string" desc="角色名称"/>
  99. <param name="remark" type="string" desc="备注"/>
  100. <return>
  101. <success ref="$sys_return"></success>
  102. <failure ref="$sys_return"></failure>
  103. </return>
  104. </api>
  105. <api name="del_role" desc="添加角色" method="post,get,put">
  106. <param name="id" type="string" desc="角色ID"/>
  107. <return>
  108. <success ref="$sys_return"></success>
  109. <failure ref="$sys_return"></failure>
  110. </return>
  111. </api>
  112. <api name="update_role" desc="修改角色" method="post,get,put">
  113. <param name="id" type="string" desc="角色ID"/>
  114. <param name="name" type="string" desc="角色名称"/>
  115. <param name="remark" type="string" desc="备注"/>
  116. <return>
  117. <success ref="$sys_return"></success>
  118. <failure ref="$sys_return"></failure>
  119. </return>
  120. </api>
  121. <api name="find_role_menu" desc="查找角色权限" method="post,get,put">
  122. <param name="role_id" type="string" desc="角色id"/>
  123. <return>
  124. <success ref="$sys_return"></success>
  125. <failure ref="$sys_return"></failure>
  126. </return>
  127. </api>
  128. <api name="save_role_menu" desc="保存角色权限" method="post,get,put">
  129. <param name="role_menu" ref="$save_role_menu array" type="string" desc="角色权限"/>
  130. <return>
  131. <success ref="$sys_return"></success>
  132. <failure ref="$sys_return"></failure>
  133. </return>
  134. </api>
  135. <api name="role_all" desc="查找所有角色" method="post,get,put">
  136. <return>
  137. <success ref="$sys_return"></success>
  138. <failure ref="$sys_return"></failure>
  139. </return>
  140. </api>
  141. <api name="find_permissions" desc="查找用户权限" method="post,get,put">
  142. <return>
  143. <success ref="$sys_return"></success>
  144. <failure ref="$sys_return"></failure>
  145. </return>
  146. </api>
  147. <api name="add_menu" desc="添加菜单" method="post,get,put">
  148. <param name="" ref="$sys_menu" type="string" desc="菜单"/>
  149. <return>
  150. <success ref="$sys_return"></success>
  151. <failure ref="$sys_return"></failure>
  152. </return>
  153. </api>
  154. <api name="del_menu" desc="删除菜单" method="post,get,put">
  155. <param name="id" type="string" desc="菜单ID"/>
  156. <return>
  157. <success ref="$sys_return"></success>
  158. <failure ref="$sys_return"></failure>
  159. </return>
  160. </api>
  161. <api name="update_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="add_org" desc="添加组织" method="post,get,put">
  169. <param name="" ref="$sys_org" type="string" desc="组织"/>
  170. <return>
  171. <success ref="$sys_return"></success>
  172. <failure ref="$sys_return"></failure>
  173. </return>
  174. </api>
  175. <api name="del_org" desc="删除组织" method="post,get,put">
  176. <param name="id" type="string" desc="组织ID"/>
  177. <return>
  178. <success ref="$sys_return"></success>
  179. <failure ref="$sys_return"></failure>
  180. </return>
  181. </api>
  182. <api name="update_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. </controller>
  190. <controller name="api" desc="api接口">
  191. <api name="api_doc" method="get" desc="api文档">
  192. <param name="sys" desc="是否包含用户管理相关接口" type="string"></param>
  193. </api>
  194. </controller>
  195. </controllers>
  196. <beans>
  197. <bean name="sys_menu_tree" desc="系统菜单树" inher="$sys_menu">
  198. <prop name="children" caption="子列表" type="$sys_menu_tree array" />
  199. <prop name="level" caption="目录层级" type="int32" />
  200. <prop name="parent_name" caption="父节点名称" type="string" />
  201. </bean>
  202. <bean name="sys_org_tree" desc="组织架构" inher="$sys_org">
  203. <prop name="children" caption="子列表" type="$sys_org_tree array" />
  204. </bean>
  205. <bean name="user_info" desc="用户信息" inher="$sys_user">
  206. <prop name="org_name" caption="部门名称" type="string" />
  207. <prop name="role_name" caption="角色名称" type="string" />
  208. <prop name="user_role" caption="用户角色" type="$sys_user_role array" />
  209. </bean>
  210. <bean name="login_info" desc="登录信息">
  211. <prop name="account" caption="用户id" type="string" />
  212. <prop name="password" caption="密码" type="string" />
  213. <prop name="captcha" caption="验证码" type="string" />
  214. </bean>
  215. <bean name="login_return_info" desc="登录信息" inher="$sys_user">
  216. <prop name="token" caption="token" type="string" />
  217. </bean>
  218. <bean name="get_page_info" desc="分页参数">
  219. <prop name="pageNum" caption="页码" type="int" />
  220. <prop name="pageSize" caption="单页数" type="int" />
  221. <prop name="columnFilters" caption="过滤条件" type="$column_filters"/>
  222. </bean>
  223. <bean name="column_filters" desc="分页参数_过滤条件列表">
  224. <prop name="name" caption="过滤名称列表" type="$column_filter" />
  225. </bean>
  226. <bean name="column_filter" desc="分页参数_过滤条件">
  227. <prop name="name" caption="过滤名称列表" type="string" />
  228. <prop name="value" caption="过滤值" type="string" />
  229. </bean>
  230. <bean name="sys_user_page_info">
  231. <prop name="pageNum" caption="页码" type="int" />
  232. <prop name="pageSize" caption="单页数" type="int" />
  233. <prop name="totalSize" caption="总页数" type="int" />
  234. <prop name="content" caption="内容" type="$user_info array" />
  235. </bean>
  236. <bean name="sys_return" desc="系统返回">
  237. <prop name="code" caption="代码" type="int32" />
  238. <prop name="msg" caption="描述" type="string" />
  239. <prop name="data" caption="数据" type="interface{}" />
  240. </bean>
  241. <bean name="sys_role_page_info">
  242. <prop name="pageNum" caption="页码" type="int" />
  243. <prop name="pageSize" caption="单页数" type="int" />
  244. <prop name="totalSize" caption="总页数" type="int" />
  245. <prop name="content" caption="内容" type="$sys_role array" />
  246. </bean>
  247. <bean name="save_role_menu" desc="保存角色权限参数">
  248. <prop name="role_id" caption="角色ID" type="string" />
  249. <prop name="menu_id" caption="菜单ID" type="string" />
  250. </bean>
  251. <bean name="storage_result" desc="附件返回">
  252. <prop name="result" caption="result" type="string" />
  253. <prop name="ip" caption="ip" type="string" />
  254. <prop name="port" caption="port" type="string" />
  255. <prop name="id" caption="id" type="string" />
  256. <prop name="hash" caption="hash" type="string" />
  257. <prop name="len" caption="len" type="int32" />
  258. <prop name="error" caption="error" type="string" />
  259. </bean>
  260. <bean name="page_result" desc="分页结果">
  261. <prop name="page" caption="页码" type="int" />
  262. <prop name="rows" caption="单页数" type="int" />
  263. <prop name="totalSize" caption="总页数" type="int64" />
  264. <prop name="content" caption="内容" type="interface{}" />
  265. </bean>
  266. <bean name="tree_node" desc="树结点">
  267. <prop name="id" caption="ID" type="string" />
  268. <prop name="text" caption="标题" type="string" />
  269. <prop name="parent" caption="父结点" type="string" />
  270. <prop name="nodes" caption="子结点" type="*TreeNode array" />
  271. <prop name="tag" caption="tag" type="interface{}" />
  272. </bean>
  273. <bean name="join" desc="连表查询">
  274. <prop name="joinOperator" caption="连接方式" type="string" />
  275. <prop name="tabelName" caption="连接表名" type="string" />
  276. <prop name="condition" caption="连接条件" type="string" />
  277. </bean>
  278. <bean name="page_query_param" desc="分页参数">
  279. <prop name="table_name" caption="表名" type="string" />
  280. <prop name="select_fields" caption="选择列" type="[]string" />
  281. <prop name="join_tables" caption="总数" type="$join array" />
  282. <!--<prop name="page_info" caption="内容" type="$get_page_info" />-->
  283. </bean>
  284. </beans>
  285. <tables>
  286. <table name="sys_user" desc="用户表">
  287. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  288. type="string" size="36">
  289. <auto value="$uuid" update="false">
  290. </auto>
  291. </column>
  292. <column isNull="false" name="login_id" caption="登录ID" type="string" dbtype="varchar(36)" size="36" />
  293. <column isNull="false" name="password" caption="密码" type="string" size="36" dbtype="varchar(36)"/>
  294. <column isNull="false" name="name" caption="名字" type="string" size="36" dbtype="varchar(36)"/>
  295. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  296. <column isNull="false" name="mobile" caption="电话" type="string" size="50" dbtype="varchar(50)"/>
  297. <column isNull="false" name="email" caption="邮箱" type="string" size="50" dbtype="varchar(50)"/>
  298. <column isNull="false" name="org_id" caption="组织ID" type="string" size="36" dbtype="varchar(36)"/>
  299. <column name="gender" caption="性别 0:女 1:男 " type="int32"/>
  300. <column name="type" caption="用户类型" type="int32"/>
  301. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  302. <column isNull="false" name="avatar" caption="头像" type="string" size="255" dbtype="varchar(255)"/>
  303. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  304. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  305. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  306. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  307. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  308. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  309. </table>
  310. <table name="sys_org" desc="组织架构">
  311. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  312. type="string" size="36">
  313. <auto value="$uuid" update="false">
  314. </auto>
  315. </column>
  316. <column isNull="true" name="parent" caption="上级组织" type="string" size="36" dbtype="varchar(36)" />
  317. <column isNull="true" name="inheritance" caption="继承关系" type="string" size="500" dbtype="varchar(500)"/>
  318. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  319. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  320. <column isNull="false" name="leader" caption="领导人" type="string" size="36" dbtype="varchar(36)"/>
  321. <column name="type" caption="组织类型" type="int32"/>
  322. <column name="order" caption="排序" type="int32"/>
  323. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  324. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(36)"/>
  325. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  326. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  327. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  328. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  329. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  330. </table>
  331. <table name="sys_role" desc="用户角色">
  332. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  333. type="string" size="36">
  334. <auto value="$uuid" update="false">
  335. </auto>
  336. </column>
  337. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  338. <column isNull="false" name="code" caption="编码" type="string" size="36" dbtype="varchar(36)"/>
  339. <column name="remark" caption="备注" type="string" size="100" dbtype="varchar(100)"/>
  340. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  341. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  342. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  343. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  344. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  345. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  346. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  347. </table>
  348. <table name="sys_user_role" desc="用户与角色对应">
  349. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  350. type="string" size="36">
  351. <auto value="$uuid" update="false">
  352. </auto>
  353. </column>
  354. <column isNull="false" name="user_id" caption="用户ID" type="string" size="36" dbtype="varchar(36)"/>
  355. <column isNull="false" name="role_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  356. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  357. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  358. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  359. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  360. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  361. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  362. </table>
  363. <table name="sys_menu" desc="系统菜单">
  364. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  365. type="string" size="36">
  366. <auto value="$uuid" update="false">
  367. </auto>
  368. </column>
  369. <column isNull="false" name="name" caption="菜单名称" type="string" size="36" dbtype="varchar(36)"/>
  370. <column isNull="false" name="code" caption="编码" type="string" size="36" dbtype="varchar(36)"/>
  371. <column isNull="true" name="parent" caption="父菜单ID,一级菜单为null" type="string" size="36" dbtype="varchar(36)"/>
  372. <column isNull="true" name="inheritance" caption="继承关系" type="string" size="500" dbtype="varchar(500)"/>
  373. <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:前缀会替换成服务器地址)"/>
  374. <column name="component" type="string" size="100" dbtype="varchar(100)" caption="菜单组件"/>
  375. <column isNull="true" name="perms" caption="授权(多个用逗号分隔,如:sys:user:add,sys:user:edit)" type="string" size="500" dbtype="varchar(500)"/>
  376. <column name="type" caption="类型 0:目录 1:菜单 2:按钮" type="int32"/>
  377. <column isNull="false" name="icon" caption="菜单图标" type="string" size="50" dbtype="varchar(50)"/>
  378. <column isNull="false" name="order_num" caption="排序" type="int32"/>
  379. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  380. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  381. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  382. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  383. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  384. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  385. </table>
  386. <table name="sys_role_menu" desc="角色与菜单对应">
  387. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  388. type="string" size="36">
  389. <auto value="$uuid" update="false">
  390. </auto>
  391. </column>
  392. <column isNull="false" name="role_id" caption="用户ID" type="string" size="36" dbtype="varchar(36)"/>
  393. <column isNull="false" name="menu_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  394. <column isNull="false" name="domain" caption="域" type="string" size="50" />
  395. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  396. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  397. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  398. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  399. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  400. </table>
  401. <table name="sys_permission" desc="权限表">
  402. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  403. type="string" size="36">
  404. <auto value="$uuid" update="false">
  405. </auto>
  406. </column>
  407. <column isNull="false" name="perms" caption="权限标识" type="string" size="100" dbtype="varchar(100)"/>
  408. <column isNull="false" name="domain" caption="域" type="string" size="50" />
  409. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  410. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  411. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  412. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  413. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  414. </table>
  415. <table name="sys_role_permission" desc="角色权限表">
  416. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  417. type="string" size="36">
  418. <auto value="$uuid" update="false">
  419. </auto>
  420. </column>
  421. <column isNull="false" name="permission_id" caption="权限ID" type="string" size="36" dbtype="varchar(36)"/>
  422. <column isNull="false" name="role_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  423. <column isNull="false" name="domain" caption="域" type="string" size="50" />
  424. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  425. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  426. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  427. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  428. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  429. </table>
  430. <table name="sys_attachment" desc="附件表">
  431. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  432. type="string" size="36">
  433. <auto value="$uuid" update="false">
  434. </auto>
  435. </column>
  436. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  437. <column isNull="false" name="size" caption="大小" type="int32" size="50" />
  438. <column isNull="false" name="ext" caption="ext" type="string" size="36" dbtype="varchar(36)"/>
  439. <column isNull="false" name="hash" caption="哈希值" type="string" />
  440. <column isNull="false" name="url" caption="链接地址" type="string" size="200" dbtype="varchar(200)"/>
  441. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  442. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  443. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  444. </table>
  445. <table name="sys_domain" desc="用户域">
  446. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  447. type="string" size="36">
  448. <auto value="$uuid" update="false">
  449. </auto>
  450. </column>
  451. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  452. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  453. <column isNull="false" name="contact_name" caption="负责人" type="string" size="36" dbtype="varchar(36)"/>
  454. <column isNull="false" name="contact_email" caption="负责人邮箱" type="string" size="50" dbtype="varchar(50)"/>
  455. <column isNull="false" name="contact_mobile" caption="负责人电话" type="string" size="50" dbtype="varchar(50)"/>
  456. <column isNull="false" name="data_source" caption="数据库链接串" type="string" size="200" dbtype="varchar(200)"/>
  457. <column isNull="false" name="domain_url" caption="网址" type="string" size="200" dbtype="varchar(200)"/>
  458. <column name="type" caption="域类型" type="int32"/>
  459. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  460. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(36)"/>
  461. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  462. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  463. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  464. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  465. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  466. </table>
  467. </tables>
  468. </application>