Added completed user. Some fixes and more more more...
This commit is contained in:
parent
b96dd39795
commit
ea8ab7c0ed
33 changed files with 576 additions and 212 deletions
|
|
@ -12,14 +12,14 @@ func itemFromResult(item *common.PostResult) responses.GetListPostResponseItem {
|
|||
UserId: item.UserId.String(),
|
||||
Title: item.Title,
|
||||
Description: item.Description,
|
||||
UpdatedAt: item.UpdatedAt.String(),
|
||||
UpdatedAt: item.UpdatedAt,
|
||||
Tags: item.Tags,
|
||||
Category: item.Category,
|
||||
}
|
||||
}
|
||||
|
||||
func ResponseFromPostGetAllResult(result *queries.PostGetAllResult) responses.GetListPostResponse {
|
||||
var resp []responses.GetListPostResponseItem
|
||||
resp := responses.GetListPostResponse{}
|
||||
|
||||
for _, r := range result.Result.Result {
|
||||
resp = append(resp, itemFromResult(r))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue