fix: scope creator contents and bind uploads

This commit is contained in:
2026-01-12 15:33:39 +08:00
parent 16d13a2ab1
commit 4022a776a6
4 changed files with 69 additions and 15 deletions

View File

@@ -31,6 +31,9 @@ func (s *content) List(ctx context.Context, tenantID int64, filter *content_dto.
if tenantID > 0 {
q = q.Where(tbl.TenantID.Eq(tenantID))
}
if filter.AuthorID != nil && *filter.AuthorID > 0 {
q = q.Where(tbl.UserID.Eq(*filter.AuthorID))
}
if filter.Genre != nil && *filter.Genre != "" {
q = q.Where(tbl.Genre.Eq(*filter.Genre))
}