medol-be/app/module/ppid_datas/response/ppid_datas.response.go

27 lines
895 B
Go
Raw Normal View History

2024-03-05 19:15:53 +00:00
package response
import (
ppidDataFilesResponse "go-humas-be/app/module/ppid_data_files/response"
"time"
)
2024-03-05 19:15:53 +00:00
type PpidDatasResponse struct {
ID uint `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
2024-04-30 03:53:50 +00:00
Slug string `json:"slug"`
CategoryId uint `json:"categoryId"`
CategoryName *string `json:"categoryName"`
CreatedById *uint `json:"createdById"`
CreatedByName *string `json:"createdByName"`
StatusId int `json:"statusId"`
StatusName int `json:"statusName"`
IsPublish *bool `json:"isPublish"`
PublishedAt *time.Time `json:"publishedAt"`
IsActive *bool `json:"isActive"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
PpidDataFiles []*ppidDataFilesResponse.PpidDataFilesResponse `json:"files"`
}