data_models.go 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. package models
  2. type Dataconfig struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  5. Module string `gorm:"column:module" json:"module" form:"module"`
  6. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  7. Name string `gorm:"column:name" json:"name" form:"name"`
  8. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  9. Value int `gorm:"column:value" json:"value" form:"value"`
  10. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  11. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  12. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  13. Status int64 `gorm:"column:status" json:"status" form:"status"`
  14. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  15. DeleteIdSystem int64 `gorm:"column:delete_id_system" json:"delete_id_system" form:"delete_id_system"`
  16. Title string `gorm:"column:title" json:"title" form:"title"`
  17. Content string `gorm:"column:content" json:"content" form:"content"`
  18. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  19. }
  20. func (Dataconfig) TableName() string {
  21. return "xt_data_config"
  22. }
  23. type DictionaryDataconfig struct {
  24. ID int64 `gorm:"column:id" json:"id" form:"id"`
  25. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  26. Module string `gorm:"column:module" json:"module" form:"module"`
  27. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  28. Name string `gorm:"column:name" json:"name" form:"name"`
  29. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  30. Value int `gorm:"column:value" json:"value" form:"value"`
  31. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  32. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  33. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  34. Status int64 `gorm:"column:status" json:"status" form:"status"`
  35. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  36. DeleteIdSystem int64 `gorm:"column:delete_id_system" json:"delete_id_system" form:"delete_id_system"`
  37. Title string `gorm:"column:title" json:"title" form:"title"`
  38. Content string `gorm:"column:content" json:"content" form:"content"`
  39. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  40. }
  41. func (DictionaryDataconfig) TableName() string {
  42. return "xt_drug_data_config"
  43. }
  44. type DictionaryConfigViewModel struct {
  45. ID int64 `gorm:"column:id" json:"id" form:"id"`
  46. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  47. Module string `gorm:"column:module" json:"module" form:"module"`
  48. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  49. Name string `gorm:"column:name" json:"name" form:"name"`
  50. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  51. Value int `gorm:"column:value" json:"value" form:"value"`
  52. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  53. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  54. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  55. Status int64 `gorm:"column:status" json:"status" form:"status"`
  56. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  57. Title string `gorm:"column:title" json:"title" form:"title"`
  58. Content string `gorm:"column:content" json:"content" form:"content"`
  59. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  60. Childs []*DictionaryDataconfig `json:"childs" `
  61. }
  62. func (DictionaryConfigViewModel) TableName() string {
  63. return "xt_drug_data_config"
  64. }
  65. type ConfigViewModel struct {
  66. ID int64 `gorm:"column:id" json:"id" form:"id"`
  67. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  68. Module string `gorm:"column:module" json:"module" form:"module"`
  69. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  70. Name string `gorm:"column:name" json:"name" form:"name"`
  71. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  72. Value int `gorm:"column:value" json:"value" form:"value"`
  73. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  74. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  75. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  76. Status int64 `gorm:"column:status" json:"status" form:"status"`
  77. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  78. Title string `gorm:"column:title" json:"title" form:"title"`
  79. Content string `gorm:"column:content" json:"content" form:"content"`
  80. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  81. Childs []*Dataconfig `json:"childs" `
  82. }
  83. func (ConfigViewModel) TableName() string {
  84. return "xt_data_config"
  85. }
  86. type FiledConfig struct {
  87. ID int64 `gorm:"column:id" json:"id"`
  88. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  89. Module int64 `gorm:"column:module" json:"module"`
  90. FiledName string `gorm:"column:filed_name" json:"filed_name"`
  91. FiledNameCn string `gorm:"column:filed_name_cn" json:"filed_name_cn"`
  92. IsShow int64 `gorm:"column:is_show" json:"is_show"`
  93. CreateTime int64 `gorm:"column:create_time" json:"create_time"`
  94. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  95. SysModule int64 `gorm:"column:sys_module" json:"sys_module" form:"sys_module"`
  96. }
  97. func (FiledConfig) TableName() string {
  98. return "xt_filed_config"
  99. }