enterprise.go 521 B

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