whitelist.go 380 B

1234567891011121314151617
  1. package entity
  2. type WhitelistListReq struct {
  3. Page int `json:"page" binding:"required"`
  4. Size int `json:"size" binding:"required"`
  5. Count int64 `json:"count"`
  6. IP string `json:"ip"`
  7. }
  8. type WhitelistAddReq struct {
  9. IP string `json:"ip" binding:"required"`
  10. Desc string `json:"desc"`
  11. }
  12. type WhitelistRemoveReq struct {
  13. IP string `json:"ip" binding:"required"`
  14. }