menu_pasture.go 333 B

123456789101112131415161718
  1. package models
  2. type MenuPasture struct {
  3. Id int64 `xorm:"id"`
  4. PastureId int64 `xorm:"pastureid"`
  5. IsGroups int32 `xorm:"isgroups"`
  6. }
  7. func (m *MenuPasture) TableName() string {
  8. return "menu_pasture"
  9. }
  10. func NewMenuPasture(pastureId int64) *MenuPasture {
  11. return &MenuPasture{
  12. PastureId: pastureId,
  13. IsGroups: 0,
  14. }
  15. }