fix: align tenant_id content filter

This commit is contained in:
2026-01-09 10:25:26 +08:00
parent cd96033a3d
commit bf0b57f537
4 changed files with 7 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ type Content struct{}
// @Produce json
// @Param keyword query string false "Search keyword"
// @Param genre query string false "Genre"
// @Param tenantId query int64 false "Filter by creator"
// @Param tenant_id query int64 false "Filter by creator"
// @Param sort query string false "Sort order" Enums(latest, hot, price_asc)
// @Param page query int false "Page number"
// @Success 200 {object} requests.Pager{items=[]dto.ContentItem}

View File

@@ -10,7 +10,7 @@ type ContentListFilter struct {
// Genre 内容类型/分类筛选。
Genre *string `query:"genre"`
// TenantID 租户ID筛选内容所属店铺
TenantID *int64 `query:"tenantId"`
TenantID *int64 `query:"tenant_id"`
// Sort 排序规则latest/hot/price_asc
Sort *string `query:"sort"`
// IsPinned 置顶内容筛选true 仅返回置顶)。