36 lines
1.2 KiB
Go
36 lines
1.2 KiB
Go
package response
|
|
|
|
import "time"
|
|
|
|
type CampaignsResponse struct {
|
|
ID uint `json:"id"`
|
|
Title string `json:"title"`
|
|
CampaignTypeID uint `json:"campaign_type_id"`
|
|
CampaignType *CampaignTypeInfo `json:"campaign_type,omitempty"`
|
|
StartDate *time.Time `json:"start_date"`
|
|
EndDate *time.Time `json:"end_date"`
|
|
MediaTypeSelected *string `json:"media_type_selected"`
|
|
MediaItemSelected *string `json:"media_item_selected"`
|
|
Purpose *string `json:"purpose"`
|
|
MediaPromote *bool `json:"media_promote"`
|
|
Description *string `json:"description"`
|
|
CreatorID uint `json:"creator_id"`
|
|
Creator *CreatorInfo `json:"creator,omitempty"`
|
|
Status string `json:"status"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type CampaignTypeInfo struct {
|
|
ID uint `json:"id"`
|
|
Name string `json:"name"`
|
|
Description *string `json:"description"`
|
|
}
|
|
|
|
type CreatorInfo struct {
|
|
ID uint `json:"id"`
|
|
Fullname string `json:"fullname"`
|
|
Email string `json:"email"`
|
|
}
|
|
|