data_models.go 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. Code string `gorm:"column:code" json:"code" form:"code"`
  20. FieldType int64 `gorm:"column:field_type" json:"field_type" form:"field_type"`
  21. }
  22. func (Dataconfig) TableName() string {
  23. return "xt_data_config"
  24. }
  25. type DictDataconfig struct {
  26. ID int64 `gorm:"column:id" json:"id" form:"id"`
  27. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  28. Module string `gorm:"column:module" json:"module" form:"module"`
  29. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  30. Name string `gorm:"column:name" json:"name" form:"name"`
  31. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  32. Value int `gorm:"column:value" json:"value" form:"value"`
  33. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  34. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  35. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  36. Status int64 `gorm:"column:status" json:"status" form:"status"`
  37. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  38. DeleteIdSystem int64 `gorm:"column:delete_id_system" json:"delete_id_system" form:"delete_id_system"`
  39. Title string `gorm:"column:title" json:"title" form:"title"`
  40. Content string `gorm:"column:content" json:"content" form:"content"`
  41. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  42. Code string `gorm:"column:code" json:"code" form:"code"`
  43. }
  44. func (DictDataconfig) TableName() string {
  45. return "xt_drug_data_config"
  46. }
  47. type DictionaryDataconfig struct {
  48. ID int64 `gorm:"column:id" json:"id" form:"id"`
  49. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  50. Module string `gorm:"column:module" json:"module" form:"module"`
  51. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  52. Name string `gorm:"column:name" json:"name" form:"name"`
  53. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  54. Value int `gorm:"column:value" json:"value" form:"value"`
  55. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  56. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  57. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  58. Status int64 `gorm:"column:status" json:"status" form:"status"`
  59. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  60. DeleteIdSystem int64 `gorm:"column:delete_id_system" json:"delete_id_system" form:"delete_id_system"`
  61. Title string `gorm:"column:title" json:"title" form:"title"`
  62. Content string `gorm:"column:content" json:"content" form:"content"`
  63. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  64. Code string `gorm:"column:code" json:"code" form:"code"`
  65. }
  66. func (DictionaryDataconfig) TableName() string {
  67. return "xt_drug_data_config"
  68. }
  69. type DictionaryConfigViewModel struct {
  70. ID int64 `gorm:"column:id" json:"id" form:"id"`
  71. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  72. Module string `gorm:"column:module" json:"module" form:"module"`
  73. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  74. Name string `gorm:"column:name" json:"name" form:"name"`
  75. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  76. Value int `gorm:"column:value" json:"value" form:"value"`
  77. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  78. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  79. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  80. Status int64 `gorm:"column:status" json:"status" form:"status"`
  81. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  82. Title string `gorm:"column:title" json:"title" form:"title"`
  83. Content string `gorm:"column:content" json:"content" form:"content"`
  84. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  85. Childs []*DictionaryDataconfig `json:"childs" `
  86. }
  87. func (DictionaryConfigViewModel) TableName() string {
  88. return "xt_drug_data_config"
  89. }
  90. type ConfigViewModel struct {
  91. ID int64 `gorm:"column:id" json:"id" form:"id"`
  92. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  93. Module string `gorm:"column:module" json:"module" form:"module"`
  94. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  95. Name string `gorm:"column:name" json:"name" form:"name"`
  96. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  97. Value int `gorm:"column:value" json:"value" form:"value"`
  98. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  99. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  100. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  101. Status int64 `gorm:"column:status" json:"status" form:"status"`
  102. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  103. Title string `gorm:"column:title" json:"title" form:"title"`
  104. Content string `gorm:"column:content" json:"content" form:"content"`
  105. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  106. Childs []*Dataconfig `json:"childs" `
  107. }
  108. func (ConfigViewModel) TableName() string {
  109. return "xt_data_config"
  110. }
  111. type DictConfigViewModel struct {
  112. ID int64 `gorm:"column:id" json:"id" form:"id"`
  113. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  114. Module string `gorm:"column:module" json:"module" form:"module"`
  115. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  116. Name string `gorm:"column:name" json:"name" form:"name"`
  117. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  118. Value int `gorm:"column:value" json:"value" form:"value"`
  119. CreatedTime string `gorm:"column:create_time" json:"create_time" form:"create_time"`
  120. UpdatedTime string `gorm:"column:update_time" json:"update_time" form:"update_time"`
  121. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  122. Status int64 `gorm:"column:status" json:"status" form:"status"`
  123. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  124. Title string `gorm:"column:title" json:"title" form:"title"`
  125. Content string `gorm:"column:content" json:"content" form:"content"`
  126. Order int64 `gorm:"column:orders" json:"orders" form:"orders"`
  127. Childs []*DictDataconfig `json:"childs" `
  128. }
  129. func (DictConfigViewModel) TableName() string {
  130. return "xt_drug_data_config"
  131. }
  132. type FiledConfig struct {
  133. ID int64 `gorm:"column:id" json:"id"`
  134. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  135. Module int64 `gorm:"column:module" json:"module"`
  136. FiledName string `gorm:"column:filed_name" json:"filed_name"`
  137. FiledNameCn string `gorm:"column:filed_name_cn" json:"filed_name_cn"`
  138. IsShow int64 `gorm:"column:is_show" json:"is_show"`
  139. CreateTime int64 `gorm:"column:create_time" json:"create_time"`
  140. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  141. SysModule int64 `gorm:"column:sys_module" json:"sys_module" form:"sys_module"`
  142. IsWrite int64 `gorm:"column:is_write" json:"is_write" form:"is_write"`
  143. IsSecondMenu int64 `gorm:"column:is_second_menu" json:"is_second_menu" form:"is_second_menu"`
  144. }
  145. func (FiledConfig) TableName() string {
  146. return "xt_filed_config"
  147. }
  148. type OutpatientServiceSick struct {
  149. ID int64 `gorm:"column:id" json:"id" form:"id"`
  150. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  151. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  152. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  153. ContentCode string `gorm:"column:content_code" json:"content_code" form:"content_code"`
  154. CountryCode string `gorm:"column:country_code" json:"country_code" form:"country_code"`
  155. CountryContentName string `gorm:"column:country_content_name" json:"country_content_name" form:"country_content_name"`
  156. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  157. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  158. Status int64 `gorm:"column:status" json:"status" form:"status"`
  159. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  160. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  161. }
  162. func (OutpatientServiceSick) TableName() string {
  163. return "outpatient_service_sick"
  164. }
  165. type XtHisAddtionConfig struct {
  166. ID int64 `gorm:"column:id" json:"id" form:"id"`
  167. Code string `gorm:"column:code" json:"code" form:"code"`
  168. Name string `gorm:"column:name" json:"name" form:"name"`
  169. Price float64 `gorm:"column:price" json:"price" form:"price"`
  170. Status int64 `gorm:"column:status" json:"status" form:"status"`
  171. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  172. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  173. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  174. }
  175. func (XtHisAddtionConfig) TableName() string {
  176. return "xt_his_addtion_config"
  177. }
  178. type XtPatientDiagnose struct {
  179. ID int64 `gorm:"column:id" json:"id" form:"id"`
  180. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  181. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  182. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  183. Status int64 `gorm:"column:status" json:"status" form:"status"`
  184. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  185. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  186. }
  187. func (XtPatientDiagnose) TableName() string {
  188. return "xt_patient_diagnose"
  189. }
  190. type XtDrugQuery struct {
  191. ID int64 `gorm:"column:id" json:"id" form:"id"`
  192. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  193. Status int64 `gorm:"column:status" json:"status" form:"status"`
  194. }
  195. func (XtDrugQuery) TableName() string {
  196. return "xt_drug_query"
  197. }
  198. type XtDrugCheckQuery struct {
  199. ID int64 `gorm:"column:id" json:"id" form:"id"`
  200. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  201. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  202. AdviceCount int64 `gorm:"column:advice_count" json:"advice_count" form:"advice_count"`
  203. OutCount int64 `gorm:"column:out_count" json:"out_count" form:"out_count"`
  204. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  205. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  206. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  207. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  208. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  209. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  210. Name string `gorm:"column:name" json:"name" form:"name"`
  211. }
  212. func (XtDrugCheckQuery) TableName() string {
  213. return "xt_drug_check_query"
  214. }
  215. type XtStockCheckQuery struct {
  216. ID int64 `gorm:"column:id" json:"id" form:"id"`
  217. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  218. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  219. AdviceCount int64 `gorm:"column:advice_count" json:"advice_count" form:"advice_count"`
  220. OutCount int64 `gorm:"column:out_count" json:"out_count" form:"out_count"`
  221. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  222. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  223. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  224. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  225. Name string `gorm:"column:name" json:"name" form:"name"`
  226. }
  227. func (XtStockCheckQuery) TableName() string {
  228. return "xt_stock_check_query"
  229. }