projectxml.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package main
  2. var DefaultProjectXML = `<?xml version="1.0" encoding="utf-8" ?>
  3. <application
  4. xmlns="http://qianqiusoft.com/developer"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://qianqiusoft.com/developer"
  7. name="{project_name}"
  8. desc="千秋开发平台" packagename="{project_name}">
  9. <controllers>
  10. <controller name="busniess" desc="开发平台">
  11. <api name="generate" desc="生成数据" method="post">
  12. <param name="hello" desc="配置文件" ref="$hello_bean"></param>
  13. <return>
  14. <success ref="$sys_return"></success>
  15. <failure ref="$sys_return"></failure>
  16. </return>
  17. </api>
  18. </controller>
  19. </controllers>
  20. <beans>
  21. <bean name="hello_bean" desc="helloworld">
  22. <prop name="id" type="string" caption="id"></prop>
  23. <prop name="name" type="string" caption="name"></prop>
  24. </bean>
  25. </beans>
  26. <tables>
  27. <table name="hello" desc="hellworld">
  28. <column isNull="false" isPK="true" name="id" caption="主键" dbtype="varchar(36)" type="string" size="36" />
  29. <column isNull="false" name="user_id" caption="用户ID" type="string" size="36" dbtype="varchar(36)"/>
  30. <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(50)"/>
  31. <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
  32. <column isNull="false" name="create_time" caption="创建时间" type="datetime" />
  33. <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>
  34. <column isNull="false" name="last_update_date" caption="最后更新时间" type="datetime" />
  35. <column isNull="false" name="del_flag" caption="是否删除 0:删除 1:正常" type="int32"/>
  36. </table>
  37. </tables>
  38. </application>`