ToGetParams converts request to services.MessageGetParams
(userID entities.UserID)
| 41 | |
| 42 | // ToGetParams converts request to services.MessageGetParams |
| 43 | func (input *MessageIndex) ToGetParams(userID entities.UserID) services.MessageGetParams { |
| 44 | return services.MessageGetParams{ |
| 45 | IndexParams: repositories.IndexParams{ |
| 46 | Skip: input.getInt(input.Skip), |
| 47 | Query: input.Query, |
| 48 | Limit: input.getInt(input.Limit), |
| 49 | }, |
| 50 | UserID: userID, |
| 51 | Owner: input.Owner, |
| 52 | Contact: input.Contact, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // getLimit gets the take as a string |
| 57 | func (input *MessageIndex) sanitizeAddress(value string) string { |