bar.go 287 B

123456789101112
  1. package model
  2. type Bar struct {
  3. Id string `xorm:"'uuid'"`
  4. Pastureid string `xorm:"varchar(30) 'FARM_UUID'"`
  5. Bname string `xorm:"varchar(20) 'HOUSE_NAME'"`
  6. Bcode string `xorm:"varchar(20) 'HOUSE_NUM'"`
  7. }
  8. func (s *Bar) TableName() string {
  9. return "t_jc_house"
  10. }