initial commit
This commit is contained in:
92
internal/dto/landing.go
Normal file
92
internal/dto/landing.go
Normal file
@@ -0,0 +1,92 @@
|
||||
package dto
|
||||
|
||||
//type Landing struct {
|
||||
// Message string `json:"message"`
|
||||
// Data struct {
|
||||
// Categories []struct {
|
||||
// Id string `json:"id"`
|
||||
// Title string `json:"title"`
|
||||
// Featured bool `json:"featured"`
|
||||
// Icon string `json:"icon"`
|
||||
// Color string `json:"color"`
|
||||
// CardType string `json:"card_type"`
|
||||
// Order int `json:"order"`
|
||||
// CreatedAt time.Time `json:"created_at"`
|
||||
// UpdatedAt time.Time `json:"updated_at"`
|
||||
// } `json:"categories"`
|
||||
// SpecialistRole []struct {
|
||||
// Id string `json:"id"`
|
||||
// Title string `json:"title"`
|
||||
// Status string `json:"status"`
|
||||
// } `json:"specialist_role"`
|
||||
// Assets []struct {
|
||||
// Id string `json:"id"`
|
||||
// Title string `json:"title"`
|
||||
// Icon string `json:"icon"`
|
||||
// Assets []struct {
|
||||
// Id string `json:"id"`
|
||||
// CoverImage string `json:"cover_image"`
|
||||
// Title string `json:"title"`
|
||||
// Avatar string `json:"avatar"`
|
||||
// Description string `json:"description"`
|
||||
// AuthorName string `json:"author_name"`
|
||||
// Price int `json:"price"`
|
||||
// Currency string `json:"currency"`
|
||||
// CategoryId string `json:"category_id"`
|
||||
// CategoryName string `json:"category_name"`
|
||||
// CardType string `json:"card_type"`
|
||||
// } `json:"assets"`
|
||||
// } `json:"assets"`
|
||||
// Specialists []struct {
|
||||
// Id string `json:"id"`
|
||||
// Handle string `json:"handle"`
|
||||
// Avatar string `json:"avatar"`
|
||||
// } `json:"specialists"`
|
||||
// Blog []struct {
|
||||
// Id string `json:"id"`
|
||||
// Title string `json:"title"`
|
||||
// Content string `json:"content"`
|
||||
// Summary string `json:"summary"`
|
||||
// CoverImage string `json:"cover_image"`
|
||||
// ContentHtml string `json:"content_html"`
|
||||
// ContentJson interface{} `json:"content_json"`
|
||||
// Status string `json:"status"`
|
||||
// IsFeatured bool `json:"is_featured"`
|
||||
// ViewCount int `json:"view_count"`
|
||||
// Slug string `json:"slug"`
|
||||
// CategoryId string `json:"category_id"`
|
||||
// Category struct {
|
||||
// Id string `json:"id"`
|
||||
// Title string `json:"title"`
|
||||
// } `json:"category"`
|
||||
// MetaTags interface{} `json:"meta_tags"`
|
||||
// Author string `json:"author"`
|
||||
// CreatedAt time.Time `json:"created_at"`
|
||||
// UpdatedAt time.Time `json:"updated_at"`
|
||||
// } `json:"blog"`
|
||||
// } `json:"data"`
|
||||
//}
|
||||
|
||||
type Landing struct {
|
||||
Message string `json:"message"`
|
||||
Data LandingPageData `json:"data"`
|
||||
}
|
||||
|
||||
type AssetCategory struct {
|
||||
Id string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Icon string `json:"icon"`
|
||||
}
|
||||
|
||||
type LandingAssetData struct {
|
||||
AssetCategory
|
||||
Assets []AssetResponse `json:"assets"`
|
||||
}
|
||||
|
||||
type LandingPageData struct {
|
||||
Categories []CategoryDTO `json:"categories"`
|
||||
SpecialistRoles []ProfileRole `json:"specialist_roles"`
|
||||
Assets []LandingAssetData `json:"assets"`
|
||||
Specialists []Specialist `json:"specialists"`
|
||||
Blogs []Blog `json:"blogs"`
|
||||
}
|
||||
Reference in New Issue
Block a user