customer_gas_cylinder.go 605 B

1234567891011121314151617
  1. package model
  2. import model2 "gas-cylinder-api/common/model"
  3. type CustomerGasCylinder struct {
  4. model2.Model
  5. CustomerId string `json:"id" gorm:"size:48"` // 主键ID
  6. InnerCode string `json:"innerCode" gorm:"size:48"` // 钢瓶内编码
  7. State int `json:"state" gorm:"size:48"` // 钢瓶状态 1-在用 2-归还
  8. BorrowTime model2.Time `json:"borrowTime" gorm:"size:48"` // 借用时间
  9. ReturnTime model2.Time `json:"returnTime" gorm:"size:48"` // 归还时间
  10. model2.ModelTime
  11. }
  12. func (CustomerGasCylinder) TableName() string {
  13. return "customer_gas_cylinder"
  14. }