data_models.go 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. FieldType int64 `gorm:"column:field_type" json:"field_type" form:"field_type"`
  20. }
  21. func (Dataconfig) TableName() string {
  22. return "xt_data_config"
  23. }
  24. type DictDataconfig struct {
  25. ID int64 `gorm:"column:id" json:"id" form:"id"`
  26. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  27. Module string `gorm:"column:module" json:"module" form:"module"`
  28. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  29. Name string `gorm:"column:name" json:"name" form:"name"`
  30. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  31. Value int `gorm:"column:value" json:"value" form:"value"`
  32. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  33. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  34. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  35. Status int64 `gorm:"column:status" json:"status" form:"status"`
  36. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  37. DeleteIdSystem int64 `gorm:"column:delete_id_system" json:"delete_id_system" form:"delete_id_system"`
  38. Title string `gorm:"column:title" json:"title" form:"title"`
  39. Content string `gorm:"column:content" json:"content" form:"content"`
  40. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  41. }
  42. func (DictDataconfig) TableName() string {
  43. return "xt_drug_data_config"
  44. }
  45. type DictionaryDataconfig struct {
  46. ID int64 `gorm:"column:id" json:"id" form:"id"`
  47. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  48. Module string `gorm:"column:module" json:"module" form:"module"`
  49. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  50. Name string `gorm:"column:name" json:"name" form:"name"`
  51. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  52. Value int `gorm:"column:value" json:"value" form:"value"`
  53. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  54. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  55. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  56. Status int64 `gorm:"column:status" json:"status" form:"status"`
  57. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  58. DeleteIdSystem int64 `gorm:"column:delete_id_system" json:"delete_id_system" form:"delete_id_system"`
  59. Title string `gorm:"column:title" json:"title" form:"title"`
  60. Content string `gorm:"column:content" json:"content" form:"content"`
  61. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  62. Code string `gorm:"column:code" json:"code" form:"code"`
  63. }
  64. func (DictionaryDataconfig) TableName() string {
  65. return "xt_drug_data_config"
  66. }
  67. type DictionaryConfigViewModel struct {
  68. ID int64 `gorm:"column:id" json:"id" form:"id"`
  69. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  70. Module string `gorm:"column:module" json:"module" form:"module"`
  71. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  72. Name string `gorm:"column:name" json:"name" form:"name"`
  73. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  74. Value int `gorm:"column:value" json:"value" form:"value"`
  75. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  76. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  77. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  78. Status int64 `gorm:"column:status" json:"status" form:"status"`
  79. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  80. Title string `gorm:"column:title" json:"title" form:"title"`
  81. Content string `gorm:"column:content" json:"content" form:"content"`
  82. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  83. Childs []*DictionaryDataconfig `json:"childs" `
  84. }
  85. func (DictionaryConfigViewModel) TableName() string {
  86. return "xt_drug_data_config"
  87. }
  88. type ConfigViewModel struct {
  89. ID int64 `gorm:"column:id" json:"id" form:"id"`
  90. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  91. Module string `gorm:"column:module" json:"module" form:"module"`
  92. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  93. Name string `gorm:"column:name" json:"name" form:"name"`
  94. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  95. Value int `gorm:"column:value" json:"value" form:"value"`
  96. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  97. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  98. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  99. Status int64 `gorm:"column:status" json:"status" form:"status"`
  100. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  101. Title string `gorm:"column:title" json:"title" form:"title"`
  102. Content string `gorm:"column:content" json:"content" form:"content"`
  103. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  104. Childs []*Dataconfig `json:"childs" `
  105. }
  106. func (ConfigViewModel) TableName() string {
  107. return "xt_data_config"
  108. }
  109. type DictConfigViewModel struct {
  110. ID int64 `gorm:"column:id" json:"id" form:"id"`
  111. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  112. Module string `gorm:"column:module" json:"module" form:"module"`
  113. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  114. Name string `gorm:"column:name" json:"name" form:"name"`
  115. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  116. Value int `gorm:"column:value" json:"value" form:"value"`
  117. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  118. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  119. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  120. Status int64 `gorm:"column:status" json:"status" form:"status"`
  121. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  122. Title string `gorm:"column:title" json:"title" form:"title"`
  123. Content string `gorm:"column:content" json:"content" form:"content"`
  124. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  125. Childs []*DictDataconfig `json:"childs" `
  126. }
  127. func (DictConfigViewModel) TableName() string {
  128. return "xt_drug_data_config"
  129. }
  130. type FiledConfig struct {
  131. ID int64 `gorm:"column:id" json:"id"`
  132. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  133. Module int64 `gorm:"column:module" json:"module"`
  134. FiledName string `gorm:"column:filed_name" json:"filed_name"`
  135. FiledNameCn string `gorm:"column:filed_name_cn" json:"filed_name_cn"`
  136. IsShow int64 `gorm:"column:is_show" json:"is_show"`
  137. CreateTime int64 `gorm:"column:create_time" json:"create_time"`
  138. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  139. SysModule int64 `gorm:"column:sys_module" json:"sys_module" form:"sys_module"`
  140. }
  141. func (FiledConfig) TableName() string {
  142. return "xt_filed_config"
  143. }
  144. type OutpatientServiceSick struct {
  145. ID int64 `gorm:"column:id" json:"id" form:"id"`
  146. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  147. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  148. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  149. ContentCode string `gorm:"column:content_code" json:"content_code" form:"content_code"`
  150. CountryCode string `gorm:"column:country_code" json:"country_code" form:"country_code"`
  151. CountryContentName string `gorm:"column:country_content_name" json:"country_content_name" form:"country_content_name"`
  152. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  153. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  154. Status int64 `gorm:"column:status" json:"status" form:"status"`
  155. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  156. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  157. }
  158. func (OutpatientServiceSick) TableName() string {
  159. return "outpatient_service_sick"
  160. }
  161. type XtHisAddtionConfig struct {
  162. ID int64 `gorm:"column:id" json:"id" form:"id"`
  163. Code string `gorm:"column:code" json:"code" form:"code"`
  164. Name string `gorm:"column:name" json:"name" form:"name"`
  165. Price float64 `gorm:"column:price" json:"price" form:"price"`
  166. Status int64 `gorm:"column:status" json:"status" form:"status"`
  167. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  168. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  169. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  170. }
  171. func (XtHisAddtionConfig) TableName() string {
  172. return "xt_his_addtion_config"
  173. }