feat(kol): workspace KOL cards + article source type
This commit is contained in:
@@ -208,7 +208,7 @@ func (q *Queries) GetArticleVersions(ctx context.Context, articleID int64) ([]Ge
|
||||
}
|
||||
|
||||
const listArticles = `-- name: ListArticles :many
|
||||
SELECT a.id, a.tenant_id, a.source_type, a.template_id,
|
||||
SELECT a.id, a.tenant_id, a.source_type, a.template_id, a.kol_prompt_id,
|
||||
a.generate_status, a.publish_status, a.created_at, a.updated_at,
|
||||
av.title, av.word_count, av.source_label,
|
||||
t.template_name
|
||||
@@ -242,6 +242,7 @@ type ListArticlesRow struct {
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
SourceType string `json:"source_type"`
|
||||
TemplateID pgtype.Int8 `json:"template_id"`
|
||||
KolPromptID pgtype.Int8 `json:"kol_prompt_id"`
|
||||
GenerateStatus string `json:"generate_status"`
|
||||
PublishStatus string `json:"publish_status"`
|
||||
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
||||
@@ -275,6 +276,7 @@ func (q *Queries) ListArticles(ctx context.Context, arg ListArticlesParams) ([]L
|
||||
&i.TenantID,
|
||||
&i.SourceType,
|
||||
&i.TemplateID,
|
||||
&i.KolPromptID,
|
||||
&i.GenerateStatus,
|
||||
&i.PublishStatus,
|
||||
&i.CreatedAt,
|
||||
|
||||
Reference in New Issue
Block a user