72 lines
2.6 KiB
Go
72 lines
2.6 KiB
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type WorkspaceOverview struct {
|
|
ArticleCount int64 `json:"article_count"`
|
|
PublishedCount int64 `json:"published_count"`
|
|
BrandCount int64 `json:"brand_count"`
|
|
}
|
|
|
|
type RecentArticle struct {
|
|
ID int64 `json:"id"`
|
|
BrandID *int64 `json:"brand_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"`
|
|
AIPointsTotal int `json:"ai_points_total"`
|
|
AIPointsUsed int `json:"ai_points_used"`
|
|
AIPointsBalance int `json:"ai_points_balance"`
|
|
AIPointBaseChars int `json:"ai_point_base_chars"`
|
|
AIPointsResetAt *time.Time `json:"ai_points_reset_at"`
|
|
}
|
|
|
|
type KolWorkspaceCard struct {
|
|
SubscriptionPromptID int64 `json:"subscription_prompt_id"`
|
|
GrantedAt time.Time `json:"granted_at"`
|
|
UpdatedAt time.Time `json:"updated_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"`
|
|
}
|
|
|
|
type AIPointUsageLog struct {
|
|
ID int64 `json:"id"`
|
|
UsageType string `json:"usage_type"`
|
|
ResourceType *string `json:"resource_type"`
|
|
ResourceID *int64 `json:"resource_id"`
|
|
ResourceUID *string `json:"resource_uid"`
|
|
RequestChars int `json:"request_chars"`
|
|
BaseChars int `json:"base_chars"`
|
|
Points int `json:"points"`
|
|
Status string `json:"status"`
|
|
Model *string `json:"model"`
|
|
ErrorMessage *string `json:"error_message"`
|
|
CompletedAt *time.Time `json:"completed_at"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|
|
|
|
type AIPointUsageListResponse struct {
|
|
Items []AIPointUsageLog `json:"items"`
|
|
Total int64 `json:"total"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
}
|