Files
zt-closet-backend/pkg/errcode/misc_code.go
T
2026-09-11 01:41:52 +08:00

25 lines
851 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package errcode
// 通知/分享/社区/星座/AI 模块错误码段位:90000 - 99999
var (
// 通知(90000 - 90099)
NotificationNotFound = NewError(90000, "通知不存在")
// 分享(90100 - 90199)
ShareNotFound = NewError(90100, "分享不存在")
ShareExpired = NewError(90101, "分享已过期")
ShareCancelled = NewError(90102, "分享已取消")
// 点赞/收藏/社区(90200 - 90299)
TargetNotFound = NewError(90200, "目标内容不存在")
LikeFailed = NewError(90201, "点赞操作失败")
CollectFailed = NewError(90202, "收藏操作失败")
// 星座(90300 - 90399)
HoroscopeNotFound = NewError(90300, "星座运势不存在")
// AI 推荐(90400 - 90499)
AIRecommendFailed = NewError(90400, "AI 推荐失败")
AIRecommendQuotaLimit = NewError(90401, "AI 推荐次数已达上限")
)