wagManage.go 1.2 KB

1234567891011121314151617181920212223242526
  1. package admin
  2. import "time"
  3. type WafManageList struct {
  4. Id int64 `json:"id" form:"id" gorm:"column:id;"`
  5. HostId int64 `json:"hostId" form:"hostId" gorm:"column:host_id;"`
  6. Uid int64 `json:"uid" form:"uid" gorm:"column:uid;"`
  7. Username string `json:"username" form:"username"`
  8. Name string `json:"name" form:"name" gorm:"column:name;"`
  9. ExpiredAt time.Time `json:"expiredAt" form:"expiredAt" gorm:"column:expired_at;"`
  10. Current int `form:"current" json:"current" default:"1"`
  11. PageSize int `form:"pageSize" json:"pageSize" default:"10"`
  12. Column string `form:"column" json:"column" default:"id"`
  13. Order string `form:"order" json:"order" default:"desc"`
  14. }
  15. type WafManageListRes struct {
  16. Id int64 `json:"id" form:"id" gorm:"column:id;"`
  17. HostId int64 `json:"hostId" form:"hostId" gorm:"column:host_id;"`
  18. Uid int64 `json:"uid" form:"uid" gorm:"column:uid;"`
  19. Username string `json:"username" form:"username"`
  20. Name string `json:"name" form:"name" gorm:"column:name;"`
  21. ExpiredAt int64 `json:"expiredAt" form:"expiredAt" gorm:"column:expired_at;"`
  22. NextDueDate int64 `json:"nextDueDate" form:"nextDueDate" gorm:"column:nextduedate"`
  23. }