data_models.go 14KB

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