product.go 481 B

12345678910111213141516171819202122
  1. package models
  2. import (
  3. model2 "Medical_ERP/common/model"
  4. )
  5. type Product 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 *Product) TableName() string {
  14. return "product"
  15. }
  16. func (e *Product) GetId() interface{} {
  17. return e.Id
  18. }