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

@@ -5,6 +5,7 @@ import (
"quyun/v2/database/models"
)
// ContentListFilter defines list query filters for published contents within a tenant.
type ContentListFilter struct {
// Pagination controls paging parameters (page/limit).
requests.Pagination `json:",inline" query:",inline"`

View File

@@ -6,6 +6,7 @@ import (
"quyun/v2/pkg/consts"
)
// ContentCreateForm defines payload for tenant-admin to create a new content draft.
type ContentCreateForm struct {
// Title is the content title.
Title string `json:"title,omitempty"`

View File

@@ -4,7 +4,7 @@ import "quyun/v2/database/models"
// MeResponse returns the resolved tenant context for the current request.
type MeResponse struct {
// Tenant is the resolved tenant by `tenant_code`.
// Tenant is the resolved tenant by `tenantCode`.
Tenant *models.Tenant `json:"tenant,omitempty"`
// User is the authenticated user derived from JWT `user_id`.
User *models.User `json:"user,omitempty"`