43 lines
1.5 KiB
Go
43 lines
1.5 KiB
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type WorkspaceOverview struct {
|
|
ArticleCount int64 `json:"article_count"`
|
|
PublishedCount int64 `json:"published_count"`
|
|
BrandCount int64 `json:"brand_count"`
|
|
SupportedPlatformCount int `json:"supported_platform_count"`
|
|
}
|
|
|
|
type RecentArticle struct {
|
|
ID int64 `json:"id"`
|
|
Title *string `json:"title"`
|
|
TemplateName *string `json:"template_name"`
|
|
GenerateStatus string `json:"generate_status"`
|
|
PublishStatus string `json:"publish_status"`
|
|
SourceType string `json:"source_type"`
|
|
GenerationMode *string `json:"generation_mode"`
|
|
WordCount int `json:"word_count"`
|
|
SourceLabel *string `json:"source_label"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|
|
|
|
type QuotaSummary struct {
|
|
PlanCode string `json:"plan_code"`
|
|
PlanName string `json:"plan_name"`
|
|
TotalQuota int `json:"total_quota"`
|
|
UsedQuota int `json:"used_quota"`
|
|
Balance int `json:"balance"`
|
|
ResetAt *time.Time `json:"reset_at"`
|
|
}
|
|
|
|
type KolWorkspaceCard struct {
|
|
SubscriptionPromptID int64 `json:"subscription_prompt_id"`
|
|
GrantedAt time.Time `json:"granted_at"`
|
|
PromptName string `json:"prompt_name"`
|
|
PlatformHint *string `json:"platform_hint"`
|
|
PackageName string `json:"package_name"`
|
|
PackageCover *string `json:"package_cover"`
|
|
KolDisplayName string `json:"kol_display_name"`
|
|
}
|