2023-12-21 22:17:40 +08:00
|
|
|
|
package errcode
|
|
|
|
|
|
|
|
|
|
type ErrCode int
|
|
|
|
|
|
|
|
|
|
var ErrCodeMsgMap = map[ErrCode]string{
|
|
|
|
|
ErrCodeCheckSignatureFail: "签名检查失败",
|
|
|
|
|
ErrCodeEncryptionInterceptFail: "加密失败",
|
|
|
|
|
ErrCodeDecryptionInterceptFail: "解密失败",
|
2024-03-27 19:34:16 +08:00
|
|
|
|
ErrCodeSuspend: "APP系统维护中,暂时无法发帖",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
ErrCodeApolloReadFail: "Apollo配置读取失败,请立即联系管理员",
|
|
|
|
|
ErrCodeApolloVersionFormatError: "Apollo版本号配置格式错误",
|
|
|
|
|
ErrCodeUserVersionFormatError: "用户上送版本号格式错误",
|
|
|
|
|
ErrCodeAssertionFail: "严重错误:类型断言异常,请立即联系管理员",
|
|
|
|
|
ErrCodeSelfOnlyOperation: "权限不足:该操作仅可对当前登录用户执行",
|
|
|
|
|
ErrCodeRolePrivilegesNotEnough: "权限不足:当前用户角色禁止执行该操作",
|
|
|
|
|
ErrCodeOpRoleOnlyOperation: "权限不足: 后台系统仅允许超级管理员和运营操作",
|
2023-12-29 21:30:59 +08:00
|
|
|
|
ErrCodeBadParam: "参数错误",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeProductSrvFail: "商品服务错误",
|
|
|
|
|
ErrCodeProductNotExist: "商品不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeCatalogSrvFail: "分类服务错误",
|
|
|
|
|
ErrCodeCatalogNotExist: "分类不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeResourceSrvFail: "资源位服务错误",
|
|
|
|
|
ErrCodeResourceNotExist: "资源位不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeLoginSrvFail: "登录服务错误",
|
|
|
|
|
ErrCodeLoginNotExist: "登录信息不存在",
|
|
|
|
|
ErrCodeLoginWrongPswd: "登录密码错误",
|
|
|
|
|
ErrCodeLoginWrongVeriCode: "验证码错误",
|
|
|
|
|
ErrCodeLoginVeriCodeExpired: "验证码已过期",
|
|
|
|
|
ErrCodeLoginAcctLocked: "登录账户尝试爆破登录,已被锁定",
|
|
|
|
|
ErrCodeLoginAcctBanned: "登录账户已被封禁",
|
2023-12-31 13:44:04 +08:00
|
|
|
|
ErrCodeLoginAcctNotEnabled: "登录账户未设置密码,请使用验证码登录",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
ErrCodeLoginNoChangeInAPswdReset: "新旧密码相同",
|
|
|
|
|
ErrCodeLoginRegisterUserFail: "账号注册失败,请稍后重试",
|
|
|
|
|
ErrCodeLoginWrongOldPswd: "旧密码错误",
|
|
|
|
|
|
2024-03-07 01:18:41 +08:00
|
|
|
|
ErrCodeAccountSrvFail: "账户服务错误",
|
|
|
|
|
ErrCodeAccountNotExist: "账户信息不存在",
|
|
|
|
|
ErrCodeAccountInviterNotExist: "邀请人不存在",
|
|
|
|
|
ErrCodeAccountInviterIsNotAStreamer: "邀请人非主播",
|
|
|
|
|
ErrCodeAccountNonUserRoleCancellation: "非普通用户注销需联系客服手工操作",
|
2024-03-07 02:17:24 +08:00
|
|
|
|
ErrCodeAccountStreamerRoleCancellation: "平台创作者请联系人工客服进行注销",
|
2024-03-07 01:18:41 +08:00
|
|
|
|
ErrCodeAccountNotInCancellingStatus: "该账户未请求注销",
|
|
|
|
|
ErrCodeAccountNotInNormalStatus: "仅允许状态正常账户执行该操作",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeVasSrvFail: "增值服务错误",
|
|
|
|
|
ErrCodeVasProductNotExist: "商品不存在",
|
|
|
|
|
ErrCodeVasAlipayFail: "支付宝错误",
|
|
|
|
|
ErrCodeVasWxpayFail: "微信支付错误",
|
|
|
|
|
ErrCodeVasNotMoneyProduct: "非现金支付商品",
|
|
|
|
|
ErrCodeVasWalletNotExist: "钱包不存在",
|
|
|
|
|
ErrCodeVasInvalidContactProduct: "联系方式商品错误",
|
|
|
|
|
ErrCodeVasUserVasNotExist: "该用户未设置联系方式",
|
|
|
|
|
ErrCodeVasNoEnoughCoin: "金币不足",
|
|
|
|
|
ErrCodeVasInvalidCoinPrice: "金币价格不正确",
|
|
|
|
|
ErrCodeVasInvalidOrder: "订单不正确",
|
|
|
|
|
ErrCodeVasOrderNotMatch: "订单不匹配",
|
|
|
|
|
ErrCodeVasOrderNotExists: "订单不存在",
|
|
|
|
|
ErrCodeVasNotUnlock: "未解锁联系方式,无法查看",
|
|
|
|
|
ErrCodeVasAlreadyUnlock: "已解锁,重复购买",
|
|
|
|
|
ErrCodeVasRepeatDeal: "重复处理",
|
|
|
|
|
ErrCodeVasInvalidCalcPrice: "价格计算错误",
|
2024-01-08 11:49:16 +08:00
|
|
|
|
ErrCodeVasNoEnoughWithdrawDias: "可提现钻石不足",
|
|
|
|
|
ErrCodeVasInvalidVerifycode: "验证码错误",
|
|
|
|
|
ErrCodeVasAlipayUniTransferFail: "支付宝提现失败",
|
2024-01-08 22:42:10 +08:00
|
|
|
|
ErrCodeVasOverTodayWithdrawCnt: "今日提现次数到达上限",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
2024-03-13 16:31:51 +08:00
|
|
|
|
ErrCodeMomentSrvFail: "动态服务错误",
|
|
|
|
|
ErrCodeMomentNotExist: "动态不存在",
|
2024-03-18 23:36:53 +08:00
|
|
|
|
ErrCodMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%s",
|
2024-03-13 16:31:51 +08:00
|
|
|
|
ErrCodMomentBlockedFromCreatingMomentPermanently: "该功能已被永久封禁",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeFootPrintSrvFail: "足迹服务错误",
|
|
|
|
|
ErrCodeFootPrintNotExist: "足迹不存在",
|
|
|
|
|
|
2024-01-13 00:32:19 +08:00
|
|
|
|
ErrCodeThumbsUpSrvFail: "点赞服务错误",
|
|
|
|
|
ErrCodeThumbsUpNotExist: "点赞不存在",
|
|
|
|
|
ErrCodeThumbsUpDuplicateKey: "请勿重复点赞",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeAccountRelationSrvFail: "用户关系服务错误",
|
|
|
|
|
ErrCodeAccountRelationNotExist: "用户关系不存在",
|
|
|
|
|
ErrCodeAccountRelationDuplicateKey: "已存在该用户关系",
|
|
|
|
|
ErrCodeAccountRelationSameSubMidAndObjMid: "请勿对自己执行该操作",
|
|
|
|
|
ErrCodeAccountRelationSubMidUnableToAccessWxIdOfObjMid: "你尚未解锁该主播的微信",
|
|
|
|
|
ErrCodeAccountRelationMustSubmitInPairs: "用户关系必须成对提交",
|
|
|
|
|
ErrCodeAccountRelationBadPair: "用户关系对信息有误",
|
|
|
|
|
|
2023-12-24 02:02:20 +08:00
|
|
|
|
ErrCodeStreamerAuthApprovalSrvFail: "女神认证审批服务错误",
|
|
|
|
|
ErrCodeStreamerAuthApprovalNotExist: "女神认证审批不存在",
|
2023-12-25 10:36:48 +08:00
|
|
|
|
ErrCodeStreamerAuthApprovalDuplicateKey: "请勿重复提交认证",
|
|
|
|
|
ErrCodeStreamerAuthApprovalInviterNotExist: "邀请人不存在",
|
|
|
|
|
ErrCodeStreamerAuthApprovalInviterIsNotAStreamer: "邀请人非主播",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeStreamerSrvFail: "主播服务错误",
|
|
|
|
|
ErrCodeStreamerNotExist: "主播不存在",
|
|
|
|
|
ErrCodeStreamerRecommListRedisCacheInvalid: "主播推荐服务redis缓存失效",
|
|
|
|
|
ErrCodeStreamerDuplicateKey: "主播重复创建",
|
|
|
|
|
|
|
|
|
|
ErrCodeFeedbackSrvFail: "意见反馈服务错误",
|
|
|
|
|
ErrCodeFeedbackNotExist: "意见反馈不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeCallHistorySrvFail: "通话记录服务错误",
|
|
|
|
|
ErrCodeCallHistoryNotExist: "通话记录不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeStreamerLinkSrvFail: "主播链接服务错误",
|
|
|
|
|
ErrCodeStreamerLinkNotExist: "主播链接不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeUserWxAddCheckSrvFail: "用户微信添加审核服务错误",
|
|
|
|
|
ErrCodeUserWxAddCheckNotExist: "用户微信添加审核不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeRealNameAuthenticationSrvFail: "实名认证服务错误",
|
|
|
|
|
ErrCodeRealNameAuthenticationNotExist: "实名认证不存在",
|
|
|
|
|
ErrCodeRealNameAuthenticationDuplicateKey: "请勿重复提交实名认证",
|
|
|
|
|
|
|
|
|
|
ErrCodeContactCustomerServiceSrvFail: "联系客服服务错误",
|
|
|
|
|
ErrCodeContactCustomerServiceNotExist: "联系客服不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeImageAuditSrvFail: "图像审核服务错误",
|
|
|
|
|
ErrCodeImageAuditNotExist: "图像审核不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeHandleWsFail: "",
|
|
|
|
|
|
|
|
|
|
ErrCodeMediaSrvFail: "媒体服务错误",
|
|
|
|
|
ErrCodeMediaNotExist: "媒体不存在",
|
|
|
|
|
ErrCodeMediaUploadFail: "媒体上传失败",
|
|
|
|
|
|
|
|
|
|
ErrCodeImageAuditTaskSrvFail: "图像审核任务服务错误",
|
|
|
|
|
ErrCodeImageAuditTaskNotExist: "图像审核任务不存在",
|
|
|
|
|
ErrCodeImageAuditTaskManuallyPassFail: "图像审核人工通过失败",
|
|
|
|
|
|
|
|
|
|
ErrCodeTextAuditSrvFail: "文字审核服务错误",
|
|
|
|
|
ErrCodeTextAuditNotExist: "文字审核不存在",
|
|
|
|
|
|
|
|
|
|
ErrCodeTextAuditTaskSrvFail: "文字审核任务服务错误",
|
|
|
|
|
ErrCodeTextAuditTaskNotExist: "文字审核任务不存在",
|
|
|
|
|
ErrCodeTextAuditTaskManuallyPassFail: "文字审核人工通过失败",
|
2023-12-23 22:03:53 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeContactCustomerServiceSessionSrvFail: "联系客服对话表服务错误",
|
|
|
|
|
ErrCodeContactCustomerServiceSessionNotExist: "联系客服对话表不存在",
|
2023-12-30 19:28:50 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeVeriCodeSendTimesSrvFail: "验证码频次表服务错误",
|
|
|
|
|
ErrCodeVeriCodeSendTimesNotExist: "验证码频次表不存在",
|
|
|
|
|
ErrCodeVeriCodeSendTimesReachedDailyUpperbound: "验证码发送次数已达每日上限",
|
2024-01-03 16:16:41 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeDailyStatementSrvFail: "每日报表表服务错误",
|
|
|
|
|
ErrCodeDailyStatementNotExist: "每日报表表不存在",
|
2024-02-01 09:52:45 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeAppConfigSrvFail: "应用配置表服务错误",
|
|
|
|
|
ErrCodeAppConfigNotExist: "应用配置表不存在",
|
2024-02-05 21:18:27 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeMomentCreateTimesSrvFail: "动态创建频次表服务错误",
|
|
|
|
|
ErrCodeMomentCreateTimesNotExist: "动态创建频次表不存在",
|
2024-02-05 22:12:47 +08:00
|
|
|
|
ErrCodeMomentCreateTimesReachedDailyUpperbound: "每天仅可发布三条动态",
|
2024-02-07 12:07:28 +08:00
|
|
|
|
|
2024-02-22 21:50:34 +08:00
|
|
|
|
ErrCodeMomentAuditTaskSrvFail: "动态审核任务表服务错误",
|
|
|
|
|
ErrCodeMomentAuditTaskNotExist: "动态审核任务表不存在",
|
2024-03-12 12:06:45 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeAccountPunishmentSrvFail: "账号处罚服务错误",
|
|
|
|
|
ErrCodeAccountPunishmentNotExist: "账号处罚不存在",
|
|
|
|
|
ErrCodeAccountPunishmentDuplicateKey: "该账号已有该类型处罚,若要更改处罚时长,请先中止当前处罚!",
|
|
|
|
|
ErrCodeAccountPunishmentHasFinished: "账号处罚已正常结束,无法执行该操作!",
|
|
|
|
|
ErrCodeAccountPunishmentHasBeenInterrupted: "账号处罚已提前中止,无法执行该操作!",
|
|
|
|
|
ErrCodeAccountPunishmentStreamerOnly: "该账号处罚行为仅能对主播进行!",
|
2024-03-19 00:01:43 +08:00
|
|
|
|
|
2024-03-07 01:18:41 +08:00
|
|
|
|
ErrCodeAccountCancellationSrvFail: "账户注销服务错误",
|
|
|
|
|
ErrCodeAccountCancellationNotExist: "账户注销不存在",
|
2024-03-20 10:06:26 +08:00
|
|
|
|
|
|
|
|
|
ErrCodeZoneSrvFail: "空间服务错误",
|
|
|
|
|
ErrCodeZoneNotExist: "空间不存在",
|
2024-04-01 11:18:03 +08:00
|
|
|
|
|
2024-03-08 00:42:42 +08:00
|
|
|
|
ErrCodeUserVisitOffsetSrvFail: "用户游标表服务错误",
|
|
|
|
|
ErrCodeUserVisitOffsetNotExist: "用户游标表不存在",
|
2023-12-21 22:17:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
ErrCodeOk ErrCode = 1
|
|
|
|
|
ErrCodeEncryptionInterceptFail ErrCode = -2 // 加密失败
|
|
|
|
|
ErrCodeDecryptionInterceptFail ErrCode = -3 // 解密失败
|
2024-03-26 12:29:53 +08:00
|
|
|
|
ErrCodeSuspend ErrCode = -4 // 软件关停中
|
2023-12-21 22:17:40 +08:00
|
|
|
|
ErrCodeCheckSignatureFail ErrCode = -10 // 签名检查失败
|
|
|
|
|
ErrCodeApolloReadFail ErrCode = -11 // Apollo配置读取失败
|
|
|
|
|
ErrCodeAssertionFail ErrCode = -12 // 类型断言异常
|
|
|
|
|
ErrCodeApolloVersionFormatError ErrCode = -13 // Apollo版本号配置格式错误
|
|
|
|
|
ErrCodeUserVersionFormatError ErrCode = -14 // 用户上送版本号格式错误
|
|
|
|
|
ErrCodeSelfOnlyOperation ErrCode = -20 // 权限不足:该操作仅可对当前登录用户执行
|
|
|
|
|
ErrCodeRolePrivilegesNotEnough ErrCode = -21 // 权限不足: 当前用户角色禁止执行该操作
|
|
|
|
|
ErrCodeOpRoleOnlyOperation ErrCode = -22 // 权限不足: 后台系统仅允许超级管理员和运营操作
|
2023-12-29 21:30:59 +08:00
|
|
|
|
ErrCodeBadParam ErrCode = -30 // 参数错误
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
// Product: 1xxx
|
|
|
|
|
ErrCodeProductSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeProductSrvFail ErrCode = -1001 // 商品服务错误
|
|
|
|
|
ErrCodeProductNotExist ErrCode = -1002 // 商品不存在
|
|
|
|
|
|
|
|
|
|
// Catalog: 2xxx
|
|
|
|
|
ErrCodeCatalogSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeCatalogSrvFail ErrCode = -2001 // 分类服务错误
|
|
|
|
|
ErrCodeCatalogNotExist ErrCode = -2002 // 分类不存在
|
|
|
|
|
|
|
|
|
|
// Resource: 3xxx
|
|
|
|
|
ErrCodeResourceSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeResourceSrvFail ErrCode = -3001 // 资源位服务错误
|
|
|
|
|
ErrCodeResourceNotExist ErrCode = -3002 // 资源位不存在
|
|
|
|
|
|
|
|
|
|
// Banner: 4xxx
|
|
|
|
|
ErrCodeBannerSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeBannerSrvFail ErrCode = -4001 // banner服务错误
|
|
|
|
|
ErrCodeBannerNotExist ErrCode = -4002 // banner不存在
|
|
|
|
|
|
|
|
|
|
// Login: 5xxx
|
|
|
|
|
ErrCodeLoginSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeLoginSrvFail ErrCode = -5001 //登录服务错误
|
|
|
|
|
ErrCodeLoginNotExist ErrCode = -5002 //登录信息不存在
|
|
|
|
|
ErrCodeLoginWrongPswd ErrCode = -5003 //登录密码错误
|
|
|
|
|
ErrCodeLoginWrongVeriCode ErrCode = -5004 //验证码错误
|
|
|
|
|
ErrCodeLoginVeriCodeExpired ErrCode = -5005 //验证码已过期
|
|
|
|
|
ErrCodeLoginAcctLocked ErrCode = -5006 //登录账户尝试爆破登录,已被锁定
|
|
|
|
|
ErrCodeLoginAcctBanned ErrCode = -5007 //登录账户已被封禁
|
|
|
|
|
ErrCodeLoginAcctNotEnabled ErrCode = -5008 //登录账户未启用
|
|
|
|
|
ErrCodeLoginNoChangeInAPswdReset ErrCode = -5009 //新旧密码相同
|
|
|
|
|
ErrCodeLoginRegisterUserFail ErrCode = -5010 //注册账户失败
|
|
|
|
|
ErrCodeLoginWrongOldPswd ErrCode = -5011 //旧密码错误
|
|
|
|
|
|
|
|
|
|
// Account: 6xxx
|
2024-03-19 00:05:23 +08:00
|
|
|
|
ErrCodeAccountSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeAccountSrvFail ErrCode = -6001 //账户服务错误
|
|
|
|
|
ErrCodeAccountNotExist ErrCode = -6002 //账户信息不存在
|
|
|
|
|
ErrCodeAccountInviterNotExist ErrCode = -6003 //邀请人不存在
|
|
|
|
|
ErrCodeAccountInviterIsNotAStreamer ErrCode = -6004 //邀请人非主播
|
|
|
|
|
ErrCodeAccountNonUserRoleCancellation ErrCode = -6005 //非普通用户注销
|
|
|
|
|
ErrCodeAccountStreamerRoleCancellation ErrCode = -6006 //主播身份注销
|
|
|
|
|
ErrCodeAccountNotInCancellingStatus ErrCode = -6007 //账户未在注销中状态
|
|
|
|
|
ErrCodeAccountNotInNormalStatus ErrCode = -6008 //账户未在正常状态
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
// Vas: 7xxx
|
|
|
|
|
ErrCodeVasSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeVasSrvFail ErrCode = -7001 // 服务错误
|
|
|
|
|
ErrCodeVasProductNotExist ErrCode = -7002 // 商品不存在
|
|
|
|
|
ErrCodeVasAlipayFail ErrCode = -7003 // 支付宝错误
|
|
|
|
|
ErrCodeVasWxpayFail ErrCode = -7004 // 微信支付错误
|
|
|
|
|
ErrCodeVasNotMoneyProduct ErrCode = -7005 // 非现金支付商品
|
|
|
|
|
ErrCodeVasWalletNotExist ErrCode = -7006 // 钱包不存在
|
|
|
|
|
ErrCodeVasInvalidContactProduct ErrCode = -7007 // 非正常联系方式商品
|
|
|
|
|
ErrCodeVasUserVasNotExist ErrCode = -7008 // 无效增值用户信息
|
|
|
|
|
ErrCodeVasNoEnoughCoin ErrCode = -7009 // 金币不足
|
|
|
|
|
ErrCodeVasInvalidCoinPrice ErrCode = -7010 // 非法价格
|
|
|
|
|
ErrCodeVasInvalidOrder ErrCode = -7011 // 非法订单
|
|
|
|
|
ErrCodeVasOrderNotMatch ErrCode = -7012 // 订单不匹配
|
|
|
|
|
ErrCodeVasOrderNotExists ErrCode = -7013 // 订单不存在
|
|
|
|
|
ErrCodeVasNotUnlock ErrCode = -7014 // 未解锁
|
|
|
|
|
ErrCodeVasAlreadyUnlock ErrCode = -7015 // 重复解锁
|
|
|
|
|
ErrCodeVasRepeatDeal ErrCode = -7016 // 重复处理
|
|
|
|
|
ErrCodeVasInvalidCalcPrice ErrCode = -7017 // 计算价格错误
|
|
|
|
|
ErrCodeVasInvalidParam ErrCode = -7018 // 参数错误
|
2024-01-08 11:49:16 +08:00
|
|
|
|
ErrCodeVasNoEnoughWithdrawDias ErrCode = -7019 // 参数错误
|
|
|
|
|
ErrCodeVasInvalidVerifycode ErrCode = -7020 // 提现验证码错误
|
|
|
|
|
ErrCodeVasAlipayUniTransferFail ErrCode = -7021 // 支付宝提现失败
|
2024-01-08 22:38:18 +08:00
|
|
|
|
ErrCodeVasOverTodayWithdrawCnt ErrCode = -7022 // 今天提现次数到达上限
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
// Moment: 8xxx
|
2024-03-13 16:31:51 +08:00
|
|
|
|
ErrCodeMomentSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeMomentSrvFail ErrCode = -8001 // 动态服务错误
|
|
|
|
|
ErrCodeMomentNotExist ErrCode = -8002 // 动态不存在
|
|
|
|
|
ErrCodMomentBlockedFromCreatingMoment ErrCode = -8003 // 动态创建已被封禁
|
|
|
|
|
ErrCodMomentBlockedFromCreatingMomentPermanently ErrCode = -8004 // 动态创建已被永久封禁
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
// FootPrint: 9xxx
|
|
|
|
|
ErrCodeFootPrintSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeFootPrintSrvFail ErrCode = -9001 // 足迹服务错误
|
|
|
|
|
ErrCodeFootPrintNotExist ErrCode = -9002 // 足迹不存在
|
|
|
|
|
|
|
|
|
|
// ThumbsUp: 10xxx
|
2024-01-13 00:32:19 +08:00
|
|
|
|
ErrCodeThumbsUpSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeThumbsUpSrvFail ErrCode = -10001 // 点赞服务错误
|
|
|
|
|
ErrCodeThumbsUpNotExist ErrCode = -10002 // 点赞不存在
|
|
|
|
|
ErrCodeThumbsUpDuplicateKey ErrCode = -10003 // 重复点赞
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
// AccountRelation: 11xxx
|
|
|
|
|
ErrCodeAccountRelationSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeAccountRelationSrvFail ErrCode = -11001 // 用户关系服务错误
|
|
|
|
|
ErrCodeAccountRelationNotExist ErrCode = -11002 // 用户关系不存在
|
|
|
|
|
ErrCodeAccountRelationDuplicateKey ErrCode = -11003 // 已存在该用户关系
|
|
|
|
|
ErrCodeAccountRelationSameSubMidAndObjMid ErrCode = -11004 // 用户关系主语和宾语不可指向同一人
|
|
|
|
|
ErrCodeAccountRelationSubMidUnableToAccessWxIdOfObjMid ErrCode = -11005 // 主语尚未解锁宾语的微信
|
|
|
|
|
ErrCodeAccountRelationMustSubmitInPairs ErrCode = -11006 // 用户关系必须成对提交
|
|
|
|
|
ErrCodeAccountRelationBadPair ErrCode = -11007 // 用户关系对信息有误
|
|
|
|
|
|
|
|
|
|
// StreamerAuthApproval: 12xxx
|
2023-12-24 02:02:20 +08:00
|
|
|
|
ErrCodeStreamerAuthApprovalSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeStreamerAuthApprovalSrvFail ErrCode = -12001 // 女神认证审批表服务错误
|
|
|
|
|
ErrCodeStreamerAuthApprovalNotExist ErrCode = -12002 // 女神认证审批表不存在
|
|
|
|
|
ErrCodeStreamerAuthApprovalDuplicateKey ErrCode = -12003 // 女神认证审批重复提交
|
|
|
|
|
ErrCodeStreamerAuthApprovalInviterNotExist ErrCode = -12004 // 女神认证审批表邀请人不存在
|
|
|
|
|
ErrCodeStreamerAuthApprovalInviterIsNotAStreamer ErrCode = -12005 // 女神认证审批表邀请人非主播
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
// Streamer: 13xxx
|
|
|
|
|
ErrCodeStreamerSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeStreamerSrvFail ErrCode = -13001 // 主播服务错误
|
|
|
|
|
ErrCodeStreamerNotExist ErrCode = -13002 // 主播不存在
|
|
|
|
|
ErrCodeStreamerRecommListRedisCacheInvalid ErrCode = -13003 // 主播推荐服务redis缓存失效
|
|
|
|
|
ErrCodeStreamerDuplicateKey ErrCode = -13004 // 主播重复创建
|
|
|
|
|
|
|
|
|
|
// Feedback: 14xxx
|
|
|
|
|
ErrCodeFeedbackSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeFeedbackSrvFail ErrCode = -14001 // 意见反馈服务错误
|
|
|
|
|
ErrCodeFeedbackNotExist ErrCode = -14002 // 意见反馈不存在
|
|
|
|
|
|
|
|
|
|
// CallHistory: 15xxx
|
|
|
|
|
ErrCodeCallHistorySrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeCallHistorySrvFail ErrCode = -15001 // 通话记录服务错误
|
|
|
|
|
ErrCodeCallHistoryNotExist ErrCode = -15002 // 通话记录不存在
|
|
|
|
|
|
|
|
|
|
// StreamerLink: 16xxx
|
|
|
|
|
ErrCodeStreamerLinkSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeStreamerLinkSrvFail ErrCode = -16001 // 主播链接服务错误
|
|
|
|
|
ErrCodeStreamerLinkNotExist ErrCode = -16002 // 主播链接不存在
|
|
|
|
|
|
|
|
|
|
// UserWxAddCheck: 17xxx
|
|
|
|
|
ErrCodeUserWxAddCheckSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeUserWxAddCheckSrvFail ErrCode = -17001 // 用户微信添加审核服务错误
|
|
|
|
|
ErrCodeUserWxAddCheckNotExist ErrCode = -17002 // 用户微信添加审核不存在
|
|
|
|
|
|
|
|
|
|
// RealNameAuthentication: 18xxx
|
|
|
|
|
ErrCodeRealNameAuthenticationSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeRealNameAuthenticationSrvFail ErrCode = -18001 // 实名认证服务错误
|
|
|
|
|
ErrCodeRealNameAuthenticationNotExist ErrCode = -18002 // 实名认证不存在
|
|
|
|
|
ErrCodeRealNameAuthenticationDuplicateKey ErrCode = -18003 // 实名认证重复提交
|
|
|
|
|
|
|
|
|
|
// ContactCustomerService: 19xxx
|
|
|
|
|
ErrCodeContactCustomerServiceSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeContactCustomerServiceSrvFail ErrCode = -19001 // 联系客服服务错误
|
|
|
|
|
ErrCodeContactCustomerServiceNotExist ErrCode = -19002 // 联系客服不存在
|
|
|
|
|
|
|
|
|
|
// ImageAudit: 20xxx
|
|
|
|
|
ErrCodeImageAuditSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeImageAuditSrvFail ErrCode = -20001 // 图像审核服务错误
|
|
|
|
|
ErrCodeImageAuditNotExist ErrCode = -20002 // 图像审核不存在
|
|
|
|
|
|
|
|
|
|
// ImageAuditTask: 21xxx
|
|
|
|
|
ErrCodeImageAuditTaskSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeImageAuditTaskSrvFail ErrCode = -21001 // 图像审核任务服务错误
|
|
|
|
|
ErrCodeImageAuditTaskNotExist ErrCode = -21002 // 图像审核任务不存在
|
|
|
|
|
ErrCodeImageAuditTaskManuallyPassFail ErrCode = -21003 // 图像审核人工通过失败
|
|
|
|
|
|
|
|
|
|
// TextAudit: 22xxx
|
|
|
|
|
ErrCodeTextAuditSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeTextAuditSrvFail ErrCode = -22001 // 文字审核服务错误
|
|
|
|
|
ErrCodeTextAuditNotExist ErrCode = -22002 // 文字审核不存在
|
|
|
|
|
|
|
|
|
|
// TextAuditTask: 23xxx
|
|
|
|
|
ErrCodeTextAuditTaskSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeTextAuditTaskSrvFail ErrCode = -23001 // 文字审核任务服务错误
|
|
|
|
|
ErrCodeTextAuditTaskNotExist ErrCode = -23002 // 文字审核任务不存在
|
|
|
|
|
ErrCodeTextAuditTaskManuallyPassFail ErrCode = -23003 // 文字审核人工通过失败
|
|
|
|
|
|
2023-12-23 22:03:53 +08:00
|
|
|
|
// ContactCustomerServiceSession: 24xxx
|
|
|
|
|
ErrCodeContactCustomerServiceSessionSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeContactCustomerServiceSessionSrvFail ErrCode = -24001 // 联系客服对话表服务错误
|
|
|
|
|
ErrCodeContactCustomerServiceSessionNotExist ErrCode = -24002 // 联系客服对话表不存在
|
|
|
|
|
|
2023-12-30 19:28:50 +08:00
|
|
|
|
// VeriCodeSendTimes: 25xxx
|
|
|
|
|
ErrCodeVeriCodeSendTimesSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeVeriCodeSendTimesSrvFail ErrCode = -25001 // 验证码频次表服务错误
|
|
|
|
|
ErrCodeVeriCodeSendTimesNotExist ErrCode = -25002 // 验证码频次表不存在
|
|
|
|
|
ErrCodeVeriCodeSendTimesReachedDailyUpperbound ErrCode = -25003 // 验证码发送次数已达每日上限
|
|
|
|
|
|
2024-01-03 16:16:41 +08:00
|
|
|
|
// DailyStatement: 26xxx
|
|
|
|
|
ErrCodeDailyStatementSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeDailyStatementSrvFail ErrCode = -26001 // 每日报表表服务错误
|
|
|
|
|
ErrCodeDailyStatementNotExist ErrCode = -26002 // 每日报表表不存在
|
|
|
|
|
|
2024-02-01 09:52:45 +08:00
|
|
|
|
// AppConfig: 27xxx
|
|
|
|
|
ErrCodeAppConfigSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeAppConfigSrvFail ErrCode = -27001 // 应用配置表服务错误
|
|
|
|
|
ErrCodeAppConfigNotExist ErrCode = -27002 // 应用配置表不存在
|
|
|
|
|
|
2024-03-07 01:18:41 +08:00
|
|
|
|
// MomentCreateTimes: 28xxx
|
2024-02-05 21:18:27 +08:00
|
|
|
|
ErrCodeMomentCreateTimesSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeMomentCreateTimesSrvFail ErrCode = -28001 // 动态创建频次表服务错误
|
|
|
|
|
ErrCodeMomentCreateTimesNotExist ErrCode = -28002 // 动态创建频次表不存在
|
|
|
|
|
ErrCodeMomentCreateTimesReachedDailyUpperbound ErrCode = -28003 // 动态创建次数已达每日上限
|
|
|
|
|
|
2024-03-07 01:18:41 +08:00
|
|
|
|
// MomentAuditTask: 29xxx
|
2024-02-22 21:50:34 +08:00
|
|
|
|
ErrCodeMomentAuditTaskSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeMomentAuditTaskSrvFail ErrCode = -29001 // 动态审核任务表服务错误
|
|
|
|
|
ErrCodeMomentAuditTaskNotExist ErrCode = -29002 // 动态审核任务表不存在
|
2024-02-07 12:07:28 +08:00
|
|
|
|
|
2024-03-20 10:06:26 +08:00
|
|
|
|
// AccountCancellation: 30xxx
|
|
|
|
|
ErrCodeAccountCancellationSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeAccountCancellationSrvFail ErrCode = -30001 // 账户注销服务错误
|
|
|
|
|
ErrCodeAccountCancellationNotExist ErrCode = -30002 // 账户注销不存在
|
|
|
|
|
|
2024-04-01 11:18:03 +08:00
|
|
|
|
// AccountCancellation: 30xxx
|
|
|
|
|
ErrCodeAccountCancellationSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeAccountCancellationSrvFail ErrCode = -30001 // 账户注销服务错误
|
|
|
|
|
ErrCodeAccountCancellationNotExist ErrCode = -30002 // 账户注销不存在
|
|
|
|
|
|
2024-03-08 00:42:42 +08:00
|
|
|
|
// UserVisitOffset: 30xxx
|
|
|
|
|
ErrCodeUserVisitOffsetSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeUserVisitOffsetSrvFail ErrCode = -31001 // 用户游标表服务错误
|
|
|
|
|
ErrCodeUserVisitOffsetNotExist ErrCode = -31002 // 用户游标表不存在
|
|
|
|
|
|
2024-03-12 12:06:45 +08:00
|
|
|
|
// AccountPunishment: 32xxx
|
|
|
|
|
ErrCodeAccountPunishmentSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeAccountPunishmentSrvFail ErrCode = -32001 // 账号处罚服务错误
|
|
|
|
|
ErrCodeAccountPunishmentNotExist ErrCode = -32002 // 账号处罚不存在
|
|
|
|
|
ErrCodeAccountPunishmentExist ErrCode = -32003 // 账号处罚存在
|
|
|
|
|
ErrCodeAccountPunishmentDuplicateKey ErrCode = -32004 // 账号处罚重复创建
|
|
|
|
|
ErrCodeAccountPunishmentHasFinished ErrCode = -32005 // 账号处罚已正常结束
|
|
|
|
|
ErrCodeAccountPunishmentHasBeenInterrupted ErrCode = -32006 // 账号处罚已提前中止
|
|
|
|
|
ErrCodeAccountPunishmentStreamerOnly ErrCode = -32007 // 该账号处罚仅能对主播进行
|
|
|
|
|
|
2024-03-20 10:06:26 +08:00
|
|
|
|
// Zone: 33xxx
|
|
|
|
|
ErrCodeZoneSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeZoneSrvFail ErrCode = -33001 // 空间服务错误
|
|
|
|
|
ErrCodeZoneNotExist ErrCode = -33002 // 空间不存在
|
2024-03-07 01:18:41 +08:00
|
|
|
|
|
2023-12-21 22:17:40 +08:00
|
|
|
|
// Media: 60xxx
|
|
|
|
|
ErrCodeMediaSrvOk ErrCode = ErrCodeOk
|
|
|
|
|
ErrCodeMediaSrvFail ErrCode = -60001 // 媒体服务错误
|
|
|
|
|
ErrCodeMediaNotExist ErrCode = -60002 // 媒体不存在
|
|
|
|
|
ErrCodeMediaUploadFail ErrCode = -60003 // 媒体上传失败
|
|
|
|
|
|
|
|
|
|
// Websocket: 1xxxxx
|
|
|
|
|
ErrCodeHandleWsFail ErrCode = -100001 // 长链连接失败
|
|
|
|
|
|
|
|
|
|
)
|