diff --git a/core/api/mail_services/v1/mail_forward.go b/core/api/mail_services/v1/mail_forward.go index 1890958d..bf8f857f 100644 --- a/core/api/mail_services/v1/mail_forward.go +++ b/core/api/mail_services/v1/mail_forward.go @@ -35,7 +35,7 @@ type AddMailForwardReq struct { g.Meta `path:"/mail_forward/add" method:"post" summary:"add mail forward"` Authorization string `json:"authorization" dc:"Authorization" in:"header"` Address string `json:"address" v:"required" desc:"forwarded email address, e.g. user@example.com"` - Goto string `json:"goto" v:"required" desc:"forward target address, multiple addresses separated by newline"` + Goto string `json:"goto" v:"required|string" desc:"forward target address, multiple addresses separated by newline"` Active int `json:"active" v:"in:0,1" desc:"status: 1-enabled, 0-disabled" default:"1"` } @@ -47,7 +47,7 @@ type EditMailForwardReq struct { g.Meta `path:"/mail_forward/edit" method:"post" summary:"edit mail forward"` Authorization string `json:"authorization" dc:"Authorization" in:"header"` Address string `json:"address" v:"required" desc:"forwarded email address"` - Goto string `json:"goto" v:"email" desc:"forward target address, multiple addresses separated by newline. not set means only modify status"` + Goto string `json:"goto" v:"required|string" desc:"forward target address, multiple addresses separated by newline. not set means only modify status"` Active int `json:"active" v:"in:0,1" desc:"status: 1-enabled, 0-disabled"` }