tools_gen_table.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // =================================================================================
  2. // This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
  3. // =================================================================================
  4. package dao
  5. import (
  6. comModel "gfast/app/common/model"
  7. "gfast/app/system/dao/internal"
  8. "gfast/app/system/model"
  9. "github.com/gogf/gf/os/gtime"
  10. )
  11. // toolsGenTableDao is the manager for logic model data accessing and custom defined data operations functions management.
  12. // You can define custom methods on it to extend its functionality as you wish.
  13. type toolsGenTableDao struct {
  14. *internal.ToolsGenTableDao
  15. }
  16. var (
  17. // ToolsGenTable is globally public accessible object for table tools_gen_table operations.
  18. ToolsGenTable toolsGenTableDao
  19. )
  20. func init() {
  21. ToolsGenTable = toolsGenTableDao{
  22. internal.NewToolsGenTableDao(),
  23. }
  24. }
  25. // Fill with you ideas below.
  26. // ToolsGenTableSearchReq 分页请求参数
  27. type ToolsGenTableSearchReq struct {
  28. TableName string `p:"tableName"` //表名称
  29. TableComment string `p:"tableComment"` //表描述
  30. comModel.PageReq
  31. }
  32. // ToolsGenTableColumnsRes 表与字段组合数据
  33. type ToolsGenTableColumnsRes struct {
  34. *model.ToolsGenTable
  35. Columns []*model.ToolsGenTableColumn `json:"columns"`
  36. }
  37. // ToolsGenTableEditReq 生成信息修改参数
  38. type ToolsGenTableEditReq struct {
  39. TableId int64 `p:"tableId" v:"required#主键ID不能为空"`
  40. TableName string `p:"tableName" v:"required#表名称不能为空"`
  41. TableComment string `p:"tableComment" v:"required#表描述不能为空"`
  42. ClassName string `p:"className" v:"required#实体类名称不能为空"`
  43. FunctionAuthor string `p:"functionAuthor" v:"required#作者不能为空"`
  44. TplCategory string `p:"tplCategory"`
  45. PackageName string `p:"packageName" v:"required#生成包路径不能为空"`
  46. ModuleName string `p:"moduleName" v:"required#生成模块名不能为空"`
  47. BusinessName string `p:"businessName" v:"required#生成业务名不能为空"`
  48. FunctionName string `p:"functionName" v:"required#生成功能名不能为空"`
  49. Remark string `p:"remark"`
  50. Params string `p:"params"`
  51. Columns []*model.ToolsGenTableColumn `p:"columns"`
  52. TreeCode string `p:"tree_code"`
  53. TreeParentCode string `p:"tree_parent_code"`
  54. TreeName string `p:"tree_name"`
  55. UserName string
  56. }
  57. // ToolsGenTableExtend 实体扩展
  58. type ToolsGenTableExtend struct {
  59. TableId int64 `orm:"table_id,primary" json:"table_id"` // 编号
  60. TableName string `orm:"table_name" json:"table_name"` // 表名称
  61. TableComment string `orm:"table_comment" json:"table_comment"` // 表描述
  62. ClassName string `orm:"class_name" json:"class_name"` // 实体类名称
  63. TplCategory string `orm:"tpl_category" json:"tpl_category"` // 使用的模板(crud单表操作 tree树表操作)
  64. PackageName string `orm:"package_name" json:"package_name"` // 生成包路径
  65. ModuleName string `orm:"module_name" json:"module_name"` // 生成模块名
  66. BusinessName string `orm:"business_name" json:"business_name"` // 生成业务名
  67. FunctionName string `orm:"function_name" json:"function_name"` // 生成功能名
  68. FunctionAuthor string `orm:"function_author" json:"function_author"` // 生成功能作者
  69. Options string `orm:"options" json:"options"` // 其它生成选项
  70. CreateBy string `orm:"create_by" json:"create_by"` // 创建者
  71. CreateTime *gtime.Time `orm:"create_time" json:"create_time"` // 创建时间
  72. UpdateBy string `orm:"update_by" json:"update_by"` // 更新者
  73. UpdateTime *gtime.Time `orm:"update_time" json:"update_time"` // 更新时间
  74. Remark string `orm:"remark" json:"remark"` // 备注
  75. TreeCode string `json:"tree_code"` // 树编码字段
  76. TreeParentCode string `json:"tree_parent_code"` // 树父编码字段
  77. TreeName string `json:"tree_name"` // 树名称字段
  78. Columns []*model.ToolsGenTableColumn `json:"columns"` // 表列信息
  79. PkColumn *model.ToolsGenTableColumn `json:"pkColumn"` // 主键列信息
  80. }