This commit is contained in:
2026-09-15 23:04:13 +08:00
parent ade2453083
commit 8c2ea84939
17 changed files with 749 additions and 161 deletions
+4 -2
View File
@@ -23,6 +23,8 @@ var (
HoroscopeNotFound = NewError(90300, "星座运势不存在")
// AI 推荐(90400 - 90499)
AIRecommendFailed = NewError(90400, "AI 推荐失败")
AIRecommendQuotaLimit = NewError(90401, "AI 推荐次数已达上限")
AIRecommendFailed = NewError(90400, "AI 推荐失败")
AIRecommendQuotaLimit = NewError(90401, "AI 推荐次数已达上限")
AIRecommendTaskNotFound = NewError(90402, "AI 推荐任务不存在或已过期")
AIRecommendTaskInProgress = NewError(90403, "AI 推荐正在生成中,请稍后查询结果")
)
+4 -1
View File
@@ -104,7 +104,10 @@ CREATE TABLE `outfits` (
PRIMARY KEY (`id`),
UNIQUE KEY `uk_outfits_uuid` (`outfit_uuid`),
KEY `idx_outfits_user_status` (`user_id`, `status`),
KEY `idx_outfits_public` (`is_public`, `audit_status`)
KEY `idx_outfits_public` (`is_public`, `audit_status`),
-- 供「未保存 AI 穿搭」清理任务使用:
-- WHERE deleted_at = 0 AND source = 2 AND status = 3 AND created_at < ?
KEY `idx_outfits_source_status_created` (`source`, `status`, `created_at`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT = '穿搭表';
CREATE TABLE `outfit_items` (