23 lines
593 B
Go
23 lines
593 B
Go
package adsdomain
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Ads struct {
|
|
ID string `json:"id"`
|
|
ImageUrl string `json:"image_url"`
|
|
Url string `json:"url"`
|
|
StartDate *time.Time `json:"start_date"`
|
|
EndDate *time.Time `json:"end_date"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type AdsReq struct {
|
|
Image string `json:"image" validate:"required"`
|
|
URL string `json:"url" validate:"required"`
|
|
StartDate *time.Time `json:"start_date" validate:"required"`
|
|
EndDate *time.Time `json:"end_date" validate:"required"`
|
|
}
|