Added DMail support #5

Merged
fenpaws merged 11 commits from develop/dm into main 2024-07-11 11:58:03 +00:00
Showing only changes of commit 1712cb512e - Show all commits

View File

@ -35,22 +35,22 @@ func NewGetDMailsBuilder(requestContext model.RequestContext) DMailsBuilder {
} }
func (g getDMails) ByTitle(title string) DMailsBuilder { func (g getDMails) ByTitle(title string) DMailsBuilder {
g.query["title_matches"] = title g.query["search[title_matches]"] = title
return g return g
} }
func (g getDMails) ByBody(body string) DMailsBuilder { func (g getDMails) ByBody(body string) DMailsBuilder {
g.query["message_matches"] = body g.query["search[message_matches]"] = body
return g return g
} }
func (g getDMails) ByToName(toName string) DMailsBuilder { func (g getDMails) ByToName(toName string) DMailsBuilder {
g.query["to_name"] = toName g.query["search[to_name]"] = toName
return g return g
} }
func (g getDMails) ByFromName(fromName string) DMailsBuilder { func (g getDMails) ByFromName(fromName string) DMailsBuilder {
g.query["from_name"] = fromName g.query["search[from_name]"] = fromName
return g return g
} }