98ebb12fa1
- Updated RecentArticle interface to include generation_mode. - Modified workspace_service to map generation_mode from database. - Adjusted domain model for RecentArticle to accommodate generation_mode. - Enhanced SQL queries to retrieve generation_mode from generation_tasks. - Created ArticleActionGroup component for article action buttons. - Implemented ArticleGenerateStatus component to display generation status. - Developed ArticlePublishStatus component to show publish status and related platforms. - Introduced ArticleSourceMeta component to display article source information. - Added utility functions for article actions and clipboard content generation.
33 lines
1.0 KiB
Go
33 lines
1.0 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"`
|
|
}
|