Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/api/mail_services/v1/mail_forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand All @@ -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"`
}

Expand Down