feat: follow llm.txt

This commit is contained in:
2025-12-18 10:27:40 +08:00
parent 819fa7f218
commit 674c562831
25 changed files with 2775 additions and 106 deletions

View File

@@ -26,9 +26,9 @@ type content struct{}
// ContentDetailResult is the internal detail result used by controllers.
type ContentDetailResult struct {
// Content is the content entity.
Content *models.Content
Content *models.Content
// Price is the price settings (may be nil).
Price *models.ContentPrice
Price *models.ContentPrice
// HasAccess indicates whether the user can access main assets.
HasAccess bool
}
@@ -44,7 +44,7 @@ func (s *content) Create(ctx context.Context, tenantID, userID int64, form *dto.
visibility = consts.ContentVisibilityTenantOnly
}
previewSeconds := int32(60)
previewSeconds := consts.DefaultContentPreviewSeconds
if form.PreviewSeconds != nil && *form.PreviewSeconds > 0 {
previewSeconds = *form.PreviewSeconds
}