feat: update ppid categories response
This commit is contained in:
parent
97c3f583e4
commit
0127b2fbda
|
|
@ -18,7 +18,8 @@ func PpidDataCategoriesResponseMapper(ppidDataCategoriesReq *entity.PpidDataCate
|
|||
Title: ppidDataCategoriesReq.Title,
|
||||
Description: ppidDataCategoriesReq.Description,
|
||||
Slug: ppidDataCategoriesReq.Slug,
|
||||
ThumbnailUrl: "/ppid-data-categories/viewer/" + strconv.Itoa(int(ppidDataCategoriesReq.ID)),
|
||||
ParentId: ppidDataCategoriesReq.ParentId,
|
||||
ThumbnailUrl: "/ppid-data-categories/thumbnail/viewer/" + strconv.Itoa(int(ppidDataCategoriesReq.ID)),
|
||||
IsActive: ppidDataCategoriesReq.IsActive,
|
||||
CreatedAt: ppidDataCategoriesReq.CreatedAt,
|
||||
UpdatedAt: ppidDataCategoriesReq.UpdatedAt,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ type PpidDataCategoriesResponse struct {
|
|||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Slug string `json:"slug"`
|
||||
ParentId *uint `json:"parentId"`
|
||||
ThumbnailUrl string `json:"thumbnailUrl"`
|
||||
IsActive *bool `json:"isActive"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue