feat: scope articles by brand
This commit is contained in:
@@ -5,6 +5,7 @@ import "time"
|
||||
type Article struct {
|
||||
ID int64
|
||||
TenantID int64
|
||||
BrandID *int64
|
||||
SourceType string
|
||||
TemplateID *int64
|
||||
CurrentVersionID *int64
|
||||
|
||||
@@ -3,13 +3,14 @@ package domain
|
||||
import "time"
|
||||
|
||||
type WorkspaceOverview struct {
|
||||
ArticleCount int64 `json:"article_count"`
|
||||
PublishedCount int64 `json:"published_count"`
|
||||
BrandCount int64 `json:"brand_count"`
|
||||
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"`
|
||||
|
||||
Reference in New Issue
Block a user