whitelist.go 348 B

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