data_models.go 11KB

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