light-apiengine.xml 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906
  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="find_user_template_page" desc="获取用户信息模板分页数" function="page" table="sys_user_template" method="get,post" >
  64. </api>
  65. <api name="find_user_template_detail_page" desc="获取用户信息模板明细分页数" function="page" table="sys_user_template_detail" method="get,post" >
  66. </api>
  67. <api name="find_area_page" desc="获取区域管理分页数" function="page" table="sys_area" method="get,post" >
  68. </api>
  69. <api name="find_area_template_page" desc="获取区域模板分页数" function="page" table="sys_area_template" method="get,post" >
  70. </api>
  71. <api name="find_area_template_detail_page" desc="获取区域模板明细分页数" function="page" table="sys_area_template_detail" method="get,post" >
  72. </api>
  73. <api name="get_area_tree" desc="获取区域管理树" function="tree" table="sys_area" method="get,post" >
  74. </api>
  75. <api name="get_org_tree" desc="获取组织架构树" function="tree" table="sys_org" method="get,post" >
  76. </api>
  77. <api name="get_menu_tree" desc="获取菜单树" function="tree" table="sys_menu" method="get,post" >
  78. </api>
  79. <api name="get_domain_tree" desc="获取菜单树" function="tree" table="sys_domain" method="get,post" >
  80. </api>
  81. <api name="find_org_page" desc="获取组织架构分页数" function="page" table="sys_org" method="get,post" >
  82. </api>
  83. <api name="find_role_page" desc="获取角色分页数" function="page" table="sys_role" method="get,post" >
  84. </api>
  85. <api name="find_menu_page" desc="获取菜单分页数" function="page" table="sys_menu" method="get,post" >
  86. </api>
  87. <api name="find_domain_page" desc="获取菜单分页数" function="page" table="sys_domain" method="get,post" >
  88. </api>
  89. <api name="find_optionset_page" desc="获取字典分页数" function="page" table="sys_optionset" method="get,post" >
  90. </api>
  91. <api name="add_user" desc="添加用户" method="post,get,put">
  92. <param name="login_id" type="string" desc="登录ID"/>
  93. <param name="password" type="string" desc="密码"/>
  94. <param name="org_id" type="string" desc="组织ID"/>
  95. <param name="email" type="string" desc="邮箱"/>
  96. <return>
  97. <success ref="$sys_return"></success>
  98. <failure ref="$sys_return"></failure>
  99. </return>
  100. </api>
  101. <api name="del_user" desc="删除用户" method="post,get,put">
  102. <param name="id" type="string" desc="用户ID"/>
  103. <return>
  104. <success ref="$sys_return"></success>
  105. <failure ref="$sys_return"></failure>
  106. </return>
  107. </api>
  108. <api name="update_user" desc="修改用户" method="post,get,put">
  109. <param name="login_id" type="string" desc="登录ID"/>
  110. <param name="password" type="string" desc="密码"/>
  111. <param name="org_id" type="string" desc="组织ID"/>
  112. <param name="email" type="string" desc="邮箱"/>
  113. <return>
  114. <success ref="$sys_return"></success>
  115. <failure ref="$sys_return"></failure>
  116. </return>
  117. </api>
  118. <api name="update_password" desc="修改用户密码" method="post,get">
  119. <param desc="用户ID" type="$sys_user"/>
  120. <return>
  121. <success ref="$sys_return"></success>
  122. <failure ref="$sys_return"></failure>
  123. </return>
  124. </api>
  125. <api name="get_user" desc="更加用户ID获取用户信息" method="get">
  126. <param name="user_id" type="string" desc="用户ID"/>
  127. <return>
  128. <success ref="$sys_return"></success>
  129. <failure ref="$sys_return"></failure>
  130. </return>
  131. </api>
  132. <api name="add_area" desc="添加区域" method="post,get,put">
  133. <param name="name" type="string" desc="区域名称"/>
  134. <param name="parent" type="string" desc="父节点"/>
  135. <param name="inheritance" type="string" desc="继承关系"/>
  136. <param name="org_id" type="string" desc="组织ID"/>
  137. <param name="temp_id" type="string" desc="模板ID"/>
  138. <param name="temp_value" type="string" desc="模板内容"/>
  139. <param name="manager" type="string" desc="负责人"/>
  140. <return>
  141. <success ref="$sys_return"></success>
  142. <failure ref="$sys_return"></failure>
  143. </return>
  144. </api>
  145. <api name="del_area" desc="删除区域" method="post,get,put">
  146. <param name="ids" type="string" desc="区域ID"/>
  147. <return>
  148. <success ref="$sys_return"></success>
  149. <failure ref="$sys_return"></failure>
  150. </return>
  151. </api>
  152. <api name="recover_area" desc="恢复区域" method="post,get,put">
  153. <param name="ids" type="string" desc="区域ID"/>
  154. <return>
  155. <success ref="$sys_return"></success>
  156. <failure ref="$sys_return"></failure>
  157. </return>
  158. </api>
  159. <api name="update_area" desc="修改区域" method="post,get,put">
  160. <param name="name" type="string" desc="区域名称"/>
  161. <param name="parent" type="string" desc="父节点"/>
  162. <param name="inheritance" type="string" desc="继承关系"/>
  163. <param name="org_id" type="string" desc="组织ID"/>
  164. <param name="temp_id" type="string" desc="模板ID"/>
  165. <param name="temp_value" type="string" desc="模板内容"/>
  166. <param name="manager" type="string" desc="负责人"/>
  167. <return>
  168. <success ref="$sys_return"></success>
  169. <failure ref="$sys_return"></failure>
  170. </return>
  171. </api>
  172. <api name="get_area" desc="根据区域ID获取区域信息" method="get">
  173. <param name="id" type="string" desc="区域ID"/>
  174. <return>
  175. <success ref="$sys_return"></success>
  176. <failure ref="$sys_return"></failure>
  177. </return>
  178. </api>
  179. <api name="add_area_template" desc="添加区域模板" method="post,get,put">
  180. <param name="name" type="string" desc="名称"/>
  181. <param name="type" type="int64" desc="模板类型 0:固定模板 1:动态模板 2:自定义模板"/>
  182. <param name="default" type="int64" desc="是否默认 1:是 0:否"/>
  183. <return>
  184. <success ref="$sys_return"></success>
  185. <failure ref="$sys_return"></failure>
  186. </return>
  187. </api>
  188. <api name="update_area_template" desc="修改区域模板" method="post,get,put">
  189. <param name="name" type="string" desc="名称"/>
  190. <param name="type" type="int64" desc="模板类型 0:固定模板 1:动态模板 2:自定义模板"/>
  191. <param name="default" type="int64" desc="是否默认 1:是 0:否"/>
  192. <return>
  193. <success ref="$sys_return"></success>
  194. <failure ref="$sys_return"></failure>
  195. </return>
  196. </api>
  197. <api name="del_area_template" desc="删除区域模板" method="post,get,put">
  198. <param name="ids" type="string" desc="区域模板ID 多个之间(,)隔开"/>
  199. <return>
  200. <success ref="$sys_return"></success>
  201. <failure ref="$sys_return"></failure>
  202. </return>
  203. </api>
  204. <api name="recover_area_template" desc="恢复区域模板" method="post,get,put">
  205. <param name="ids" type="string" desc="区域模板ID 多个之间(,)隔开"/>
  206. <return>
  207. <success ref="$sys_return"></success>
  208. <failure ref="$sys_return"></failure>
  209. </return>
  210. </api>
  211. <api name="get_area_template" desc="根据区域模板ID获取区域模板信息" method="get">
  212. <param name="id" type="string" desc="区域模板ID"/>
  213. <return>
  214. <success ref="$sys_return"></success>
  215. <failure ref="$sys_return"></failure>
  216. </return>
  217. </api>
  218. <api name="add_area_template_detail" desc="添加区域模板明细" method="post,get,put">
  219. <param name="temp_id" type="string" desc="模板id"/>
  220. <param name="name" type="string" desc="名称"/>
  221. <param name="value" type="string" desc="值"/>
  222. <param name="type" type="int64" desc="类型 0:数值项 1:单选项 2:文字项 3:列表项"/>
  223. <param name="priority" type="int64" desc="优先级"/>
  224. <param name="content" type="string" desc="内容"/>
  225. <return>
  226. <success ref="$sys_return"></success>
  227. <failure ref="$sys_return"></failure>
  228. </return>
  229. </api>
  230. <api name="update_area_template_detail" desc="修改区域模板明细" method="post,get,put">
  231. <param name="temp_id" type="string" desc="模板id"/>
  232. <param name="name" type="string" desc="名称"/>
  233. <param name="value" type="string" desc="值"/>
  234. <param name="type" type="int64" desc="类型 0:数值项 1:单选项 2:文字项 3:列表项"/>
  235. <param name="priority" type="int64" desc="优先级"/>
  236. <param name="content" type="string" desc="内容"/>
  237. <return>
  238. <success ref="$sys_return"></success>
  239. <failure ref="$sys_return"></failure>
  240. </return>
  241. </api>
  242. <api name="del_area_template_detail" desc="删除区域模板明细" method="post,get,put">
  243. <param name="ids" type="string" desc="区域模板明细ID 多个之间(,)隔开"/>
  244. <return>
  245. <success ref="$sys_return"></success>
  246. <failure ref="$sys_return"></failure>
  247. </return>
  248. </api>
  249. <api name="recover_area_template_detail" desc="恢复区域模板明细" method="post,get,put">
  250. <param name="ids" type="string" desc="区域模板明细ID 多个之间(,)隔开"/>
  251. <return>
  252. <success ref="$sys_return"></success>
  253. <failure ref="$sys_return"></failure>
  254. </return>
  255. </api>
  256. <api name="get_area_template_detail" desc="根据区域模板明细ID获取区域模板明细信息" method="get">
  257. <param name="id" type="string" desc="区域模板明细ID"/>
  258. <return>
  259. <success ref="$sys_return"></success>
  260. <failure ref="$sys_return"></failure>
  261. </return>
  262. </api>
  263. <api name="add_user_template" desc="添加用户信息模板" method="post,get,put">
  264. <param name="name" type="string" desc="名称"/>
  265. <param name="type" type="int64" desc="模板类型 0:固定模板 1:动态模板 2:自定义模板"/>
  266. <param name="default" type="int64" desc="是否默认 1:是 0:否"/>
  267. <return>
  268. <success ref="$sys_return"></success>
  269. <failure ref="$sys_return"></failure>
  270. </return>
  271. </api>
  272. <api name="update_user_template" desc="修改用户信息模板" method="post,get,put">
  273. <param name="name" type="string" desc="名称"/>
  274. <param name="type" type="int64" desc="模板类型 0:固定模板 1:动态模板 2:自定义模板"/>
  275. <param name="default" type="int64" desc="是否默认 1:是 0:否"/>
  276. <return>
  277. <success ref="$sys_return"></success>
  278. <failure ref="$sys_return"></failure>
  279. </return>
  280. </api>
  281. <api name="del_user_template" desc="删除用户信息模板" method="post,get,put">
  282. <param name="ids" type="string" desc="用户信息模板ID 多个之间(,)隔开"/>
  283. <return>
  284. <success ref="$sys_return"></success>
  285. <failure ref="$sys_return"></failure>
  286. </return>
  287. </api>
  288. <api name="recover_user_template" desc="恢复用户信息模板" method="post,get,put">
  289. <param name="ids" type="string" desc="用户信息模板ID 多个之间(,)隔开"/>
  290. <return>
  291. <success ref="$sys_return"></success>
  292. <failure ref="$sys_return"></failure>
  293. </return>
  294. </api>
  295. <api name="get_user_template" desc="根据用户信息模板ID获取用户信息模板信息" method="get">
  296. <param name="id" type="string" desc="用户信息模板ID"/>
  297. <return>
  298. <success ref="$sys_return"></success>
  299. <failure ref="$sys_return"></failure>
  300. </return>
  301. </api>
  302. <api name="add_user_template_detail" desc="添加用户信息模板明细" method="post,get,put">
  303. <param name="temp_id" type="string" desc="模板id"/>
  304. <param name="name" type="string" desc="名称"/>
  305. <param name="value" type="string" desc="值"/>
  306. <param name="type" type="int64" desc="类型 0:数值项 1:单选项 2:文字项 3:列表项"/>
  307. <param name="priority" type="int64" desc="优先级"/>
  308. <param name="content" type="string" desc="内容"/>
  309. <return>
  310. <success ref="$sys_return"></success>
  311. <failure ref="$sys_return"></failure>
  312. </return>
  313. </api>
  314. <api name="update_user_template_detail" desc="修改用户信息模板明细" method="post,get,put">
  315. <param name="temp_id" type="string" desc="模板id"/>
  316. <param name="name" type="string" desc="名称"/>
  317. <param name="value" type="string" desc="值"/>
  318. <param name="type" type="int64" desc="类型 0:数值项 1:单选项 2:文字项 3:列表项"/>
  319. <param name="priority" type="int64" desc="优先级"/>
  320. <param name="content" type="string" desc="内容"/>
  321. <return>
  322. <success ref="$sys_return"></success>
  323. <failure ref="$sys_return"></failure>
  324. </return>
  325. </api>
  326. <api name="del_user_template_detail" desc="删除用户信息模板明细" method="post,get,put">
  327. <param name="ids" type="string" desc="用户信息模板明细ID 多个之间(,)隔开"/>
  328. <return>
  329. <success ref="$sys_return"></success>
  330. <failure ref="$sys_return"></failure>
  331. </return>
  332. </api>
  333. <api name="recover_user_template_detail" desc="恢复用户信息模板明细" method="post,get,put">
  334. <param name="ids" type="string" desc="用户信息模板明细ID 多个之间(,)隔开"/>
  335. <return>
  336. <success ref="$sys_return"></success>
  337. <failure ref="$sys_return"></failure>
  338. </return>
  339. </api>
  340. <api name="get_user_template_detail" desc="根据用户信息模板明细ID获取用户信息模板明细信息" method="get">
  341. <param name="id" type="string" desc="用户信息模板明细ID"/>
  342. <return>
  343. <success ref="$sys_return"></success>
  344. <failure ref="$sys_return"></failure>
  345. </return>
  346. </api>
  347. <api name="add_role" desc="添加角色" method="post,get,put">
  348. <param name="name" type="string" desc="角色名称"/>
  349. <param name="remark" type="string" desc="备注"/>
  350. <return>
  351. <success ref="$sys_return"></success>
  352. <failure ref="$sys_return"></failure>
  353. </return>
  354. </api>
  355. <api name="del_role" desc="添加角色" method="post,get,put">
  356. <param name="id" type="string" desc="角色ID"/>
  357. <return>
  358. <success ref="$sys_return"></success>
  359. <failure ref="$sys_return"></failure>
  360. </return>
  361. </api>
  362. <api name="update_role" desc="修改角色" method="post,get,put">
  363. <param name="id" type="string" desc="角色ID"/>
  364. <param name="name" type="string" desc="角色名称"/>
  365. <param name="remark" type="string" desc="备注"/>
  366. <return>
  367. <success ref="$sys_return"></success>
  368. <failure ref="$sys_return"></failure>
  369. </return>
  370. </api>
  371. <api name="get_user_roles" desc="根据用户ID获取用户角色" method="post,get,put">
  372. <param name="user_id" type="string" desc="用户ID"/>、
  373. <return>
  374. <success ref="$sys_return"></success>
  375. <failure ref="$sys_return"></failure>
  376. </return>
  377. </api>
  378. <api name="find_role_menu" desc="查找角色权限" method="post,get,put">
  379. <param name="role_id" type="string" desc="角色id"/>
  380. <return>
  381. <success ref="$sys_return"></success>
  382. <failure ref="$sys_return"></failure>
  383. </return>
  384. </api>
  385. <api name="save_role_menu" desc="保存角色权限" method="post,get,put">
  386. <param name="role_menu" ref="$save_role_menu array" type="string" desc="角色权限"/>
  387. <return>
  388. <success ref="$sys_return"></success>
  389. <failure ref="$sys_return"></failure>
  390. </return>
  391. </api>
  392. <api name="role_all" desc="查找所有角色" method="post,get,put">
  393. <return>
  394. <success ref="$sys_return"></success>
  395. <failure ref="$sys_return"></failure>
  396. </return>
  397. </api>
  398. <api name="find_permissions" desc="查找用户权限" method="post,get,put">
  399. <return>
  400. <success ref="$sys_return"></success>
  401. <failure ref="$sys_return"></failure>
  402. </return>
  403. </api>
  404. <api name="add_menu" desc="添加菜单" method="post,get,put">
  405. <param name="" ref="$sys_menu" type="string" desc="菜单"/>
  406. <return>
  407. <success ref="$sys_return"></success>
  408. <failure ref="$sys_return"></failure>
  409. </return>
  410. </api>
  411. <api name="del_menu" desc="删除菜单" method="post,get,put">
  412. <param name="id" type="string" desc="菜单ID"/>
  413. <return>
  414. <success ref="$sys_return"></success>
  415. <failure ref="$sys_return"></failure>
  416. </return>
  417. </api>
  418. <api name="update_menu" desc="更新菜单" method="post,get,put">
  419. <param name="" ref="$sys_menu" type="string" desc="菜单"/>
  420. <return>
  421. <success ref="$sys_return"></success>
  422. <failure ref="$sys_return"></failure>
  423. </return>
  424. </api>
  425. <api name="add_org" desc="添加组织" method="post,get,put">
  426. <param name="" ref="$sys_org" type="string" desc="组织"/>
  427. <return>
  428. <success ref="$sys_return"></success>
  429. <failure ref="$sys_return"></failure>
  430. </return>
  431. </api>
  432. <api name="del_org" desc="删除组织" method="post,get,put">
  433. <param name="id" type="string" desc="组织ID"/>
  434. <return>
  435. <success ref="$sys_return"></success>
  436. <failure ref="$sys_return"></failure>
  437. </return>
  438. </api>
  439. <api name="update_org" desc="更新组织" method="post,get,put">
  440. <param name="" ref="$sys_org" type="string" desc="组织"/>
  441. <return>
  442. <success ref="$sys_return"></success>
  443. <failure ref="$sys_return"></failure>
  444. </return>
  445. </api>
  446. <api name="get_org_by_userid" desc="根据用户id获取用户组织" method="post,get">
  447. <param name="user_id" type="string" desc="用户id"/>
  448. <return>
  449. <success ref="$sys_return"></success>
  450. <failure ref="$sys_return"></failure>
  451. </return>
  452. </api>
  453. <api name="add_domain" desc="添加域" method="post,get,put">
  454. <param name="" ref="$sys_domain" desc="域"/>
  455. <return>
  456. <success ref="$sys_return"></success>
  457. <success ref="$sys_return"></success>
  458. <failure ref="$sys_return"></failure>
  459. </return>
  460. </api>
  461. <api name="del_domain" desc="删除域" method="post,get,put">
  462. <param name="id" type="string" desc="域ID"/>
  463. <return>
  464. <success ref="$sys_return"></success>
  465. <failure ref="$sys_return"></failure>
  466. </return>
  467. </api>
  468. <api name="update_domain" desc="修改域" method="post,get,put">
  469. <param name="" ref="$sys_domain" desc="域"/>
  470. <return>
  471. <success ref="$sys_return"></success>
  472. <failure ref="$sys_return"></failure>
  473. </return>
  474. </api>
  475. <api name="add_domain_menu" desc="域添加菜单" method="post,get,put">
  476. <param name="" ref="$add_domain_menu" desc="添加域菜单bean"/>
  477. <return>
  478. <success ref="$sys_return"></success>
  479. <failure ref="$sys_return"></failure>
  480. </return>
  481. </api>
  482. <api name="get_domain_menu_tree" desc="域添加菜单" method="get,put">
  483. <param name="domain_id" type="string" desc="域id"/>
  484. <return>
  485. <success ref="$sys_return"></success>
  486. <failure ref="$sys_return"></failure>
  487. </return>
  488. </api>
  489. <api name="get_role_menu_tree" desc="获取角色权限菜单" method="get">
  490. <param name="role_id" type="string" desc="角色id"/>
  491. <return>
  492. <success ref="$sys_return"></success>
  493. <failure ref="$sys_return"></failure>
  494. </return>
  495. </api>
  496. <api name="add_role_menu" desc="添加角色菜单" method="post">
  497. <param name="menu_id" ref="string array" desc="菜单id"/>
  498. <param name="role_id" type="string" desc="角色id"/>
  499. <return>
  500. <success ref="$sys_return"></success>
  501. <failure ref="$sys_return"></failure>
  502. </return>
  503. </api>
  504. <api name="add_optionset" desc="添加字典" method="post,get,put">
  505. <param name="" ref="$sys_optionset" desc="字典"/>
  506. <return>
  507. <success ref="$sys_return"></success>
  508. <success ref="$sys_return"></success>
  509. <failure ref="$sys_return"></failure>
  510. </return>
  511. </api>
  512. <api name="del_optionset" desc="删除字典" method="post,get,put">
  513. <param name="id" type="string" desc="字典ID"/>
  514. <return>
  515. <success ref="$sys_return"></success>
  516. <failure ref="$sys_return"></failure>
  517. </return>
  518. </api>
  519. <api name="update_optionset" desc="修改字典" method="post,get,put">
  520. <param name="" ref="$sys_optionset" desc="字典"/>
  521. <return>
  522. <success ref="$sys_return"></success>
  523. <failure ref="$sys_return"></failure>
  524. </return>
  525. </api>
  526. <api name="get_optionset_by_code" desc="根据编码查找字典" method="get">
  527. <param name="code" type="string" desc="字典编码"/>
  528. <return>
  529. <success ref="$sys_return"></success>
  530. <failure ref="$sys_return"></failure>
  531. </return>
  532. </api>
  533. </controller>
  534. <controller name="api" desc="api接口">
  535. <api name="api_doc" method="get" desc="api文档">
  536. <param name="sys" desc="是否包含用户管理相关接口" type="string"></param>
  537. </api>
  538. </controller>
  539. </controllers>
  540. <beans>
  541. <bean name="sys_org_tree" desc="组织架构" inher="$sys_org">
  542. <prop name="children" caption="子列表" type="$sys_org_tree array" />
  543. </bean>
  544. <bean name="user_info" desc="用户信息" inher="$sys_user">
  545. <prop name="org_name" caption="部门名称" type="string" />
  546. <prop name="role_name" caption="角色名称" type="string" />
  547. <prop name="user_role" caption="用户角色" type="$sys_user_role array" />
  548. </bean>
  549. <bean name="login_info" desc="登录信息">
  550. <prop name="account" caption="用户id" type="string" />
  551. <prop name="password" caption="密码" type="string" />
  552. <prop name="captcha" caption="验证码" type="string" />
  553. </bean>
  554. <bean name="login_return_info" desc="登录信息" inher="$sys_user">
  555. <prop name="token" caption="token" type="string" />
  556. <prop name="roles" caption="用户角色" type="$sys_role array" />
  557. </bean>
  558. <bean name="sys_user_page_info">
  559. <prop name="pageNum" caption="页码" type="int" />
  560. <prop name="pageSize" caption="单页数" type="int" />
  561. <prop name="totalSize" caption="总页数" type="int" />
  562. <prop name="content" caption="内容" type="$user_info array" />
  563. </bean>
  564. <bean name="sys_return" desc="系统返回">
  565. <prop name="code" caption="代码" type="int32" />
  566. <prop name="msg" caption="描述" type="string" />
  567. <prop name="data" caption="数据" type="interface{}" />
  568. </bean>
  569. <bean name="sys_role_page_info">
  570. <prop name="pageNum" caption="页码" type="int" />
  571. <prop name="pageSize" caption="单页数" type="int" />
  572. <prop name="totalSize" caption="总页数" type="int" />
  573. <prop name="content" caption="内容" type="$sys_role array" />
  574. </bean>
  575. <bean name="save_role_menu" desc="保存角色权限参数">
  576. <prop name="role_id" caption="角色ID" type="string" />
  577. <prop name="menu_id" caption="菜单ID" type="string" />
  578. </bean>
  579. <bean name="storage_result" desc="附件返回">
  580. <prop name="result" caption="result" type="string" />
  581. <prop name="ip" caption="ip" type="string" />
  582. <prop name="port" caption="port" type="string" />
  583. <prop name="id" caption="id" type="string" />
  584. <prop name="hash" caption="hash" type="string" />
  585. <prop name="len" caption="len" type="int32" />
  586. <prop name="error" caption="error" type="string" />
  587. </bean>
  588. <bean name="page_result" desc="分页结果">
  589. <prop name="page" caption="页码" type="int" />
  590. <prop name="rows" caption="单页数" type="int" />
  591. <prop name="totalSize" caption="总数" type="int64" />
  592. <prop name="totalPageSize" caption="总页数" type="int64"/>
  593. <prop name="content" caption="内容" type="interface{}" />
  594. </bean>
  595. <bean name="tree_node" desc="树结点">
  596. <prop name="id" caption="ID" type="string" />
  597. <prop name="text" caption="标题" type="string" />
  598. <prop name="parent" caption="父结点" type="string" />
  599. <prop name="nodes" caption="子结点" type="*TreeNode array" />
  600. <prop name="tag" caption="tag" type="interface{}" />
  601. </bean>
  602. <bean name="add_domain_menu" desc="添加域菜单">
  603. <prop name="domain_id" caption="域名ID" type="string" />
  604. <prop name="menus" caption="菜单" type="string array" />
  605. </bean>
  606. </beans>
  607. <tables>
  608. <table name="sys_user" desc="用户表">
  609. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  610. type="string" size="36">
  611. <auto value="$uuid" update="false">
  612. </auto>
  613. </column>
  614. <column isNull="false" name="login_id" caption="登录ID" type="string" dbtype="varchar(36)" size="36" />
  615. <column isNull="false" name="password" caption="密码" type="string" size="36" dbtype="varchar(36)"/>
  616. <column isNull="false" name="name" caption="名字" type="string" size="36" dbtype="varchar(36)"/>
  617. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  618. <column isNull="false" name="mobile" caption="电话" type="string" size="50" dbtype="varchar(50)"/>
  619. <column isNull="false" name="email" caption="邮箱" type="string" size="50" dbtype="varchar(50)"/>
  620. <column isNull="false" name="org_id" caption="组织ID" type="string" size="36" dbtype="varchar(36)"/>
  621. <column name="gender" caption="性别 0:女 1:男 " type="int32"/>
  622. <column name="type" caption="用户类型" type="int32"/>
  623. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  624. <column isNull="false" name="avatar" caption="头像" type="string" size="255" dbtype="varchar(255)"/>
  625. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  626. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  627. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  628. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  629. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  630. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  631. <column isNull="false" name="temp_id" caption="模板id" type="string" size="36" dbtype="varchar(36)"/>
  632. <column isNull="false" name="temp_value" caption="模板值" type="string" dbtype="text"/>
  633. </table>
  634. <table name="sys_user_template" desc="用户信息扩展模板">
  635. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  636. type="string" size="36">
  637. <auto value="$uuid" update="false">
  638. </auto>
  639. </column>
  640. <column isNull="false" name="name" caption="模板名称" type="string" size="200" dbtype="varchar(200)"/>
  641. <column isNull="false" name="type" caption="模板类型 0:固定模板 1:动态模板 2:自定义模板" type="int64" size="20" dbtype="bigint"/>
  642. <column isNull="false" name="default" caption="是否默认 1:是 0:否" type="int32"/>
  643. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  644. <column isNull="false" name="create_time" caption="创建时间" type="local_time"/>
  645. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  646. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64"/>
  647. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  648. </table>
  649. <table name="sys_user_template_detail" desc="用户信息扩展模板明细">
  650. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  651. type="string" size="36">
  652. <auto value="$uuid" update="false">
  653. </auto>
  654. </column>
  655. <column isNull="false" name="temp_id" caption="模板ID" type="string" size="200" dbtype="varchar(200)"/>
  656. <column isNull="false" name="name" caption="名称" type="string" size="50" dbtype="varchar(50)"/>
  657. <column isNull="false" name="value" caption="值" type="string" size="50" dbtype="varchar(50)"/>
  658. <column isNull="false" name="type" caption="模板类型 0:数值项 1:单选项 2:文字项 3:列表项" type="int64" size="36" dbtype="int"/>
  659. <column isNull="false" name="content" caption="模板内容" type="string" dbtype="text"/>
  660. <column isNull="false" name="priority" caption="优先级" type="int64" dbtype="int"/>
  661. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  662. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  663. <column isNull="false" name="create_time" caption="创建时间" type="local_time"/>
  664. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  665. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64"/>
  666. </table>
  667. <table name="sys_area" desc="区域管理">
  668. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  669. type="string" size="36">
  670. <auto value="$uuid" update="false">
  671. </auto>
  672. </column>
  673. <column isNull="false" name="name" caption="区域名称" type="string" size="36" dbtype="varchar(36)"/>
  674. <column isNull="false" name="parent" caption="父节点" type="string" size="1024" dbtype="varchar(1024)"/>
  675. <column isNull="false" name="inheritance" caption="继承关系" type="string" size="1024" dbtype="varchar(1024)"/>
  676. <column isNull="false" name="org_id" caption="组织ID" type="string" size="36" dbtype="varchar(36)"/>
  677. <column isNull="false" name="temp_id" caption="模板ID" type="string" size="36" dbtype="varchar(36)"/>
  678. <column isNull="false" name="temp_value" caption="模板内容" type="string" dbtype="text"/>
  679. <column isNull="false" name="manager" caption="负责人" type="string" size="36" dbtype="varchar(36)"/>
  680. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  681. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  682. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  683. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  684. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  685. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  686. </table>
  687. <table name="sys_area_template" desc="区域信息模板">
  688. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  689. type="string" size="36">
  690. <auto value="$uuid" update="false">
  691. </auto>
  692. </column>
  693. <column isNull="false" name="name" caption="名称" type="string" size="200" dbtype="varchar(200)"/>
  694. <column isNull="false" name="type" caption="模板类型 0:固定模板 1:动态模板 2:自定义模板" type="int64" size="20" dbtype="bigint"/>
  695. <column isNull="false" name="default" caption="是否默认 1:是 0:否" type="int32"/>
  696. <column isNull="false" name="domain" caption="域" type="string" size="36" dbtype="varchar(36)"/>
  697. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  698. <column isNull="false" name="create_time" caption="创建时间" type="local_time"/>
  699. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  700. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64"/>
  701. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  702. </table>
  703. <table name="sys_area_template_detail" desc="区域信息模板明细">
  704. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  705. type="string" size="36">
  706. <auto value="$uuid" update="false">
  707. </auto>
  708. </column>
  709. <column isNull="false" name="temp_id" caption="区域信息模板id" type="string" size="36" dbtype="varchar(36)"/>
  710. <column isNull="false" name="name" caption="名称" type="string" size="50" dbtype="varchar(50)"/>
  711. <column isNull="false" name="value" caption="值" type="string" size="36" dbtype="varchar(36)"/>
  712. <column isNull="false" name="type" caption="类型 0:数值项 1:单选项 2:文字项 3:列表项" type="int64" size="36" dbtype="bigint"/>
  713. <column isNull="false" name="priority" caption="优先级" type="int64" size="36" dbtype="bigint"/>
  714. <column isNull="false" name="content" caption="内容" type="string" dbtype="text"/>
  715. <column isNull="false" name="domain" caption="域" type="string" size="36" dbtype="varchar(36)"/>
  716. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  717. <column isNull="false" name="create_time" caption="创建时间" type="local_time"/>
  718. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  719. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64"/>
  720. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  721. </table>
  722. <table name="sys_org" desc="组织架构">
  723. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  724. type="string" size="36">
  725. <auto value="$uuid" update="false">
  726. </auto>
  727. </column>
  728. <column isNull="true" name="parent" caption="上级组织" type="string" size="36" dbtype="varchar(36)" />
  729. <column isNull="true" name="inheritance" caption="继承关系" type="string" size="500" dbtype="varchar(500)"/>
  730. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  731. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  732. <column isNull="false" name="leader" caption="领导人" type="string" size="36" dbtype="varchar(36)"/>
  733. <column name="type" caption="组织类型" type="int32"/>
  734. <column name="order" caption="排序" type="int32"/>
  735. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  736. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  737. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  738. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  739. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  740. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  741. </table>
  742. <table name="sys_role" desc="用户角色">
  743. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  744. type="string" size="36">
  745. <auto value="$uuid" update="false">
  746. </auto>
  747. </column>
  748. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  749. <column isNull="false" name="code" caption="编码" type="string" size="36" dbtype="varchar(36)"/>
  750. <column isNull="false" name="index_component" caption="角色进入后台首页组件" type="string" size="500" dbtype="varchar(500)"/>
  751. <column isNull="false" name="app_index" caption="角色app首页url" type="string" size="500" dbtype="varchar(500)"/>
  752. <column name="priority" caption="优先级" type="int32"/>
  753. <column name="remark" caption="备注" type="string" size="100" dbtype="varchar(100)"/>
  754. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  755. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  756. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  757. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  758. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  759. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  760. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  761. </table>
  762. <table name="sys_user_role" desc="用户与角色对应">
  763. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  764. type="string" size="36">
  765. <auto value="$uuid" update="false">
  766. </auto>
  767. </column>
  768. <column isNull="false" name="user_id" caption="用户ID" type="string" size="36" dbtype="varchar(36)"/>
  769. <column isNull="false" name="role_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  770. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  771. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  772. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  773. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  774. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  775. </table>
  776. <table name="sys_menu" desc="系统菜单">
  777. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  778. type="string" size="36">
  779. <auto value="$uuid" update="false">
  780. </auto>
  781. </column>
  782. <column isNull="false" name="name" caption="菜单名称" type="string" size="36" dbtype="varchar(36)"/>
  783. <column isNull="false" name="code" caption="编码" type="string" size="36" dbtype="varchar(36)"/>
  784. <column isNull="true" name="parent" caption="父菜单ID,一级菜单为null" type="string" size="36" dbtype="varchar(36)"/>
  785. <column isNull="true" name="inheritance" caption="继承关系" type="string" size="500" dbtype="varchar(500)"/>
  786. <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:前缀会替换成服务器地址)"/>
  787. <column name="component" type="string" size="100" dbtype="varchar(100)" caption="菜单组件"/>
  788. <column isNull="true" name="perms" caption="授权(多个用逗号分隔,如:sys:user:add,sys:user:edit)" type="string" size="500" dbtype="varchar(500)"/>
  789. <column name="type" caption="类型 0:目录 1:菜单 2:按钮" type="int32"/>
  790. <column isNull="false" name="icon" caption="菜单图标" type="string" size="50" dbtype="varchar(50)"/>
  791. <column isNull="false" name="order_num" caption="排序" type="int32"/>
  792. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  793. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  794. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  795. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  796. <column isNull="false" name="hidden" caption="是否隐藏 1:隐藏 0:显示" type="int32"/>
  797. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  798. </table>
  799. <table name="sys_role_menu" desc="角色与菜单对应">
  800. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  801. type="string" size="36">
  802. <auto value="$uuid" update="false">
  803. </auto>
  804. </column>
  805. <column isNull="false" name="role_id" caption="用户ID" type="string" size="36" dbtype="varchar(36)"/>
  806. <column isNull="false" name="menu_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  807. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  808. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  809. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  810. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  811. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  812. </table>
  813. <table name="sys_permission" desc="权限表">
  814. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  815. type="string" size="36">
  816. <auto value="$uuid" update="false">
  817. </auto>
  818. </column>
  819. <column isNull="false" name="perms" caption="权限标识" type="string" size="100" dbtype="varchar(100)"/>
  820. <column isNull="false" name="domain" caption="域" type="string" size="50" />
  821. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  822. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  823. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  824. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  825. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  826. </table>
  827. <table name="sys_role_permission" desc="角色权限表">
  828. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  829. type="string" size="36">
  830. <auto value="$uuid" update="false">
  831. </auto>
  832. </column>
  833. <column isNull="false" name="permission_id" caption="权限ID" type="string" size="36" dbtype="varchar(36)"/>
  834. <column isNull="false" name="role_id" caption="角色ID" type="string" size="36" dbtype="varchar(36)"/>
  835. <column isNull="false" name="domain" caption="域" type="string" size="50" />
  836. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  837. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  838. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  839. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  840. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  841. </table>
  842. <table name="sys_attachment" desc="附件表">
  843. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  844. type="string" size="36">
  845. <auto value="$uuid" update="false">
  846. </auto>
  847. </column>
  848. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  849. <column isNull="false" name="size" caption="大小" type="int32" size="50" />
  850. <column isNull="false" name="ext" caption="ext" type="string" size="36" dbtype="varchar(36)"/>
  851. <column isNull="false" name="hash" caption="哈希值" type="string" />
  852. <column isNull="false" name="url" caption="链接地址" type="string" size="200" dbtype="varchar(200)"/>
  853. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  854. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  855. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  856. </table>
  857. <table name="sys_domain" desc="用户域">
  858. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  859. type="string" size="36">
  860. <auto value="$uuid" update="false">
  861. </auto>
  862. </column>
  863. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  864. <column isNull="false" name="full_name" caption="全名" type="string" size="36" dbtype="varchar(36)"/>
  865. <column isNull="false" name="contact_name" caption="负责人" type="string" size="36" dbtype="varchar(36)"/>
  866. <column isNull="false" name="contact_email" caption="负责人邮箱" type="string" size="50" dbtype="varchar(50)"/>
  867. <column isNull="false" name="contact_mobile" caption="负责人电话" type="string" size="50" dbtype="varchar(50)"/>
  868. <column isNull="false" name="data_source" caption="数据库链接串" type="string" size="200" dbtype="varchar(200)"/>
  869. <column isNull="false" name="domain_url" caption="网址" type="string" size="200" dbtype="varchar(200)"/>
  870. <column isNull="false" name="login_url" caption="登录页" type="string" size="200" dbtype="varchar(200)"/>
  871. <column isNull="true" name="theme" caption="样式" type="string" size="50" dbtype="varchar(50)"/>
  872. <column name="type" caption="域类型" type="int32"/>
  873. <column name="status" caption="状态 0:禁用 1:正常" type="int32"/>
  874. <column isNull="false" name="sync_flag" caption="是否同步了数据库标志" type="int32"/>
  875. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(36)"/>
  876. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  877. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  878. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  879. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  880. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  881. </table>
  882. <table name="sys_optionset" desc="数据字典">
  883. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)"
  884. type="string" size="36">
  885. <auto value="$uuid" update="false">
  886. </auto>
  887. </column>
  888. <column isNull="false" name="name" caption="名称" type="string" size="36" dbtype="varchar(36)"/>
  889. <column isNull="false" name="code" caption="编码" type="string" size="200" dbtype="varchar(200)"/>
  890. <column isNull="false" name="value" caption="值" type="string" dbtype="text"/>
  891. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  892. <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
  893. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  894. <column isNull="false" name="last_update_time" caption="最后更新时间" type="int64" />
  895. <column isNull="false" name="del_flag" caption="是否删除 1:删除 0:正常" type="int32"/>
  896. </table>
  897. </tables>
  898. </application>