dosage_form.go 494 B

12345678910111213141516171819202122
  1. package models
  2. import (
  3. model2 "Medical_ERP/common/model"
  4. )
  5. type DosageForm struct {
  6. model2.Model
  7. Name string `gorm:"size:128" json:"name"` //剂型名称
  8. Sort int `gorm:"size:4" json:"-" swaggerignore:"true"` //剂型排序
  9. Remark string `gorm:"size:255" json:"-" swaggerignore:"true"` //描述
  10. model2.ControlBy
  11. model2.ModelTime
  12. }
  13. func (e *DosageForm) TableName() string {
  14. return "dosage_form"
  15. }
  16. func (e *DosageForm) GetId() interface{} {
  17. return e.Id
  18. }