param.go 249 B

123456789101112
  1. package model
  2. // ArgEquip card equip arg.
  3. type ArgEquip struct {
  4. Mid int64
  5. CardID int64 `form:"id" validate:"required,min=1,gte=1"`
  6. }
  7. // ArgMids card mids arg.
  8. type ArgMids struct {
  9. Mids []int64 `form:"mids,split" validate:"min=1,max=50"`
  10. }