544 lines
30 KiB
Go
544 lines
30 KiB
Go
package errcode
|
||
|
||
type ErrCode int
|
||
|
||
var ErrCodeMsgMap = map[ErrCode]string{
|
||
ErrCodeCheckSignatureFail: "签名检查失败",
|
||
ErrCodeEncryptionInterceptFail: "加密失败",
|
||
ErrCodeDecryptionInterceptFail: "解密失败",
|
||
ErrCodeSuspend: "APP系统维护中,暂时无法发帖",
|
||
ErrCodeApolloReadFail: "Apollo配置读取失败,请立即联系管理员",
|
||
ErrCodeApolloVersionFormatError: "Apollo版本号配置格式错误",
|
||
ErrCodeUserVersionFormatError: "用户上送版本号格式错误",
|
||
ErrCodeAssertionFail: "严重错误:类型断言异常,请立即联系管理员",
|
||
ErrCodeSelfOnlyOperation: "权限不足:该操作仅可对当前登录用户执行",
|
||
ErrCodeRolePrivilegesNotEnough: "权限不足:当前用户角色禁止执行该操作",
|
||
ErrCodeOpRoleOnlyOperation: "权限不足: 后台系统仅允许超级管理员和运营操作",
|
||
ErrCodeBadParam: "参数错误",
|
||
ErrCodeFunctionBlocked: "功能封禁中,截止时间:%s",
|
||
ErrCodeFunctionBlockedPermanently: "该功能已被永久封禁",
|
||
ErrCodeMediaUploadFailPleaseCheck: "媒体上传失败,请检查网络或文件大小后重试",
|
||
|
||
ErrCodeProductSrvFail: "商品服务错误",
|
||
ErrCodeProductNotExist: "商品不存在",
|
||
|
||
ErrCodeCatalogSrvFail: "分类服务错误",
|
||
ErrCodeCatalogNotExist: "分类不存在",
|
||
|
||
ErrCodeResourceSrvFail: "资源位服务错误",
|
||
ErrCodeResourceNotExist: "资源位不存在",
|
||
|
||
ErrCodeLoginSrvFail: "登录服务错误",
|
||
ErrCodeLoginNotExist: "登录信息不存在",
|
||
ErrCodeLoginWrongPswd: "登录密码错误",
|
||
ErrCodeLoginWrongVeriCode: "验证码错误",
|
||
ErrCodeLoginVeriCodeExpired: "验证码已过期",
|
||
ErrCodeLoginAcctLocked: "账户已锁定,请明日再试",
|
||
ErrCodeLoginAcctBanned: "登录账户已被封禁",
|
||
ErrCodeLoginAcctNotEnabled: "登录账户未设置密码,请使用验证码登录",
|
||
ErrCodeLoginNoChangeInAPswdReset: "新旧密码相同",
|
||
ErrCodeLoginRegisterUserFail: "账号注册失败,请稍后重试",
|
||
ErrCodeLoginWrongOldPswd: "旧密码错误",
|
||
|
||
ErrCodeAccountSrvFail: "账户服务错误",
|
||
ErrCodeAccountNotExist: "账户信息不存在",
|
||
ErrCodeAccountInviterNotExist: "邀请人不存在",
|
||
ErrCodeAccountInviterIsNotAStreamer: "邀请人非主播",
|
||
ErrCodeAccountNonUserRoleCancellation: "非普通用户注销需联系客服手工操作",
|
||
ErrCodeAccountStreamerRoleCancellation: "平台创作者请联系人工客服进行注销",
|
||
ErrCodeAccountNotInCancellingStatus: "该账户未请求注销",
|
||
ErrCodeAccountNotInNormalStatus: "仅允许状态正常账户执行该操作",
|
||
|
||
ErrCodeVasSrvFail: "增值服务错误",
|
||
ErrCodeVasProductNotExist: "商品不存在",
|
||
ErrCodeVasAlipayFail: "支付宝错误",
|
||
ErrCodeVasWxpayFail: "微信支付错误",
|
||
ErrCodeVasNotMoneyProduct: "非现金支付商品",
|
||
ErrCodeVasWalletNotExist: "钱包不存在",
|
||
ErrCodeVasInvalidContactProduct: "联系方式商品错误",
|
||
ErrCodeVasUserVasNotExist: "该用户未设置联系方式",
|
||
ErrCodeVasNoEnoughCoin: "金币不足",
|
||
ErrCodeVasInvalidCoinPrice: "金币价格不正确",
|
||
ErrCodeVasInvalidOrder: "订单不正确",
|
||
ErrCodeVasOrderNotMatch: "订单不匹配",
|
||
ErrCodeVasOrderNotExists: "订单不存在",
|
||
ErrCodeVasNotUnlock: "未解锁联系方式,无法查看",
|
||
ErrCodeVasAlreadyUnlock: "已解锁,重复购买",
|
||
ErrCodeVasRepeatDeal: "重复处理",
|
||
ErrCodeVasInvalidCalcPrice: "价格计算错误",
|
||
ErrCodeVasNoEnoughWithdrawDias: "可提现钻石不足",
|
||
ErrCodeVasInvalidVerifycode: "验证码错误",
|
||
ErrCodeVasAlipayUniTransferFail: "支付宝提现失败",
|
||
ErrCodeVasOverTodayWithdrawCnt: "今日提现次数到达上限",
|
||
|
||
ErrCodeMomentSrvFail: "动态服务错误",
|
||
ErrCodeMomentNotExist: "动态不存在",
|
||
// ErrCodeMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%s",
|
||
// ErrCodeMomentBlockedFromCreatingMomentPermanently: "该功能已被永久封禁",
|
||
|
||
ErrCodeFootPrintSrvFail: "足迹服务错误",
|
||
ErrCodeFootPrintNotExist: "足迹不存在",
|
||
|
||
ErrCodeThumbsUpSrvFail: "点赞服务错误",
|
||
ErrCodeThumbsUpNotExist: "点赞不存在",
|
||
ErrCodeThumbsUpDuplicateKey: "请勿重复点赞",
|
||
|
||
ErrCodeAccountRelationSrvFail: "用户关系服务错误",
|
||
ErrCodeAccountRelationNotExist: "用户关系不存在",
|
||
ErrCodeAccountRelationDuplicateKey: "已存在该用户关系",
|
||
ErrCodeAccountRelationSameSubMidAndObjMid: "请勿对自己执行该操作",
|
||
ErrCodeAccountRelationSubMidUnableToAccessWxIdOfObjMid: "你尚未解锁该主播的微信",
|
||
ErrCodeAccountRelationMustSubmitInPairs: "用户关系必须成对提交",
|
||
ErrCodeAccountRelationBadPair: "用户关系对信息有误",
|
||
|
||
ErrCodeStreamerAuthApprovalSrvFail: "女神认证审批服务错误",
|
||
ErrCodeStreamerAuthApprovalNotExist: "女神认证审批不存在",
|
||
ErrCodeStreamerAuthApprovalDuplicateKey: "请勿重复提交认证",
|
||
ErrCodeStreamerAuthApprovalInviterNotExist: "邀请人不存在",
|
||
ErrCodeStreamerAuthApprovalInviterIsNotAStreamer: "邀请人非主播",
|
||
|
||
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: "文字审核人工通过失败",
|
||
|
||
ErrCodeContactCustomerServiceSessionSrvFail: "联系客服对话表服务错误",
|
||
ErrCodeContactCustomerServiceSessionNotExist: "联系客服对话表不存在",
|
||
|
||
ErrCodeVeriCodeSendTimesSrvFail: "验证码频次表服务错误",
|
||
ErrCodeVeriCodeSendTimesNotExist: "验证码频次表不存在",
|
||
ErrCodeVeriCodeSendTimesReachedDailyUpperbound: "验证码发送次数已达每日上限",
|
||
|
||
ErrCodeDailyStatementSrvFail: "每日报表表服务错误",
|
||
ErrCodeDailyStatementNotExist: "每日报表表不存在",
|
||
|
||
ErrCodeAppConfigSrvFail: "应用配置表服务错误",
|
||
ErrCodeAppConfigNotExist: "应用配置表不存在",
|
||
|
||
ErrCodeMomentCreateTimesSrvFail: "动态创建频次表服务错误",
|
||
ErrCodeMomentCreateTimesNotExist: "动态创建频次表不存在",
|
||
ErrCodeMomentCreateTimesReachedDailyUpperbound: "每天仅可发布三条动态",
|
||
|
||
ErrCodeMomentAuditTaskSrvFail: "动态审核任务表服务错误",
|
||
ErrCodeMomentAuditTaskNotExist: "动态审核任务表不存在",
|
||
|
||
ErrCodeAccountPunishmentSrvFail: "账号处罚服务错误",
|
||
ErrCodeAccountPunishmentNotExist: "账号处罚不存在",
|
||
ErrCodeAccountPunishmentDuplicateKey: "该账号已有该类型处罚,若要更改处罚时长,请先中止当前处罚!",
|
||
ErrCodeAccountPunishmentHasFinished: "账号处罚已正常结束,无法执行该操作!",
|
||
ErrCodeAccountPunishmentHasBeenInterrupted: "账号处罚已提前中止,无法执行该操作!",
|
||
ErrCodeAccountPunishmentStreamerOnly: "该账号处罚行为仅能对主播进行!",
|
||
|
||
ErrCodeAccountCancellationSrvFail: "账户注销服务错误",
|
||
ErrCodeAccountCancellationNotExist: "账户注销不存在",
|
||
|
||
ErrCodeZoneSrvFail: "空间服务错误",
|
||
ErrCodeZoneNotExist: "空间不存在",
|
||
ErrCodeUnlockedZone: "访客未解锁该空间",
|
||
ErrCodeZoneDuplicateKey: "您已创建空间",
|
||
|
||
ErrCodeZoneMomentSrvFail: "私密圈动态服务错误",
|
||
ErrCodeZoneMomentNotExist: "私密圈动态不存在",
|
||
ErrCodePaidZoneMomentCreateTimesReachedUpperbound: "付费动态不能多于免费动态",
|
||
ErrCodeZoneMomentImagesNotEnoughForEncryption: "预览图片数不得大于等于上传图片数",
|
||
ErrCodeZoneMomentStatusNotPublic: "私密圈动态状态不为公开!",
|
||
|
||
ErrCodeZoneMomentThumbsUpSrvFail: "私密圈点赞服务错误",
|
||
ErrCodeZoneMomentThumbsUpNotExist: "私密圈点赞不存在",
|
||
ErrCodeZoneMomentThumbsUpDuplicateKey: "请勿重复点赞",
|
||
|
||
ErrCodeUserVisitOffsetSrvFail: "用户游标表服务错误",
|
||
ErrCodeUserVisitOffsetNotExist: "用户游标表不存在",
|
||
|
||
ErrCodeZoneSessionSrvFail: "空间对话表服务错误",
|
||
ErrCodeZoneSessionNotExist: "空间对话表不存在",
|
||
|
||
ErrCodeZoneThirdPartnerSrvFail: "空间代运营表服务错误",
|
||
ErrCodeZoneThirdPartnerNotExist: "空间代运营表不存在",
|
||
ErrCodeZoneThirdPartnerWrongThirdPartner: "空间代运营不能设置成自己",
|
||
ErrCodeZoneThirdPartnerDuplicateKey: "空间代运营已设置,请勿重复设置代运营!",
|
||
ErrCodeZoneThirdPartnerSharingRatioNotEnough: "分成比例必须大于合伙人比例之和!",
|
||
ErrCodeZoneThirdPartnerSharingRatioTooLarge: "分成比例不可超过50%!",
|
||
|
||
ErrCodeZoneCollaboratorSrvFail: "空间协作者表服务错误",
|
||
ErrCodeZoneCollaboratorNotExist: "空间协作者表不存在",
|
||
ErrCodeZoneCollaboratorCreateIsZTPOnlyOperation: "空间协作者表创建操作只有空间代运营可操作",
|
||
ErrCodeZoneCollaboratorWrongCollaborator: "空间协作者不能设置成自己或者空间所有人",
|
||
ErrCodeZoneCollaboratorDuplicateKey: "用户已是该空间协作者!",
|
||
|
||
ErrCodeZoneMomentCreateTimesSrvFail: "空间动态创建频次表服务错误",
|
||
ErrCodeZoneMomentCreateTimesNotExist: "空间动态创建频次表不存在",
|
||
ErrCodeZoneMomentCreateTimesReachedDailyUpperbound: "每天仅可发布十条空间动态",
|
||
|
||
ErrCodeDailyStatementZoneInfoSrvFail: "空间相关每日报表服务错误",
|
||
ErrCodeDailyStatementZoneInfoNotExist: "空间相关每日报表不存在",
|
||
|
||
ErrCodeWorkerIdSrvFail: "用户职业者id映射表服务错误",
|
||
ErrCodeWorkerIdNotExist: "用户职业者id映射表不存在",
|
||
|
||
ErrCodeSingleDistributeHisSrvFail: "慧用工下发打款历史表服务错误",
|
||
ErrCodeSingleDistributeHisNotExist: "慧用工下发打款历史表不存在",
|
||
ErrCodeCurrentSingleDistributeNotTerminated: "当前提现申请尚未结束",
|
||
ErrCodeUnhandleableSingleDistributeStatus: "无法处理的下发打款状态",
|
||
|
||
ErrCodeHvyogoSrvFail: "慧用工接口服务错误",
|
||
}
|
||
|
||
const (
|
||
ErrCodeOk ErrCode = 1
|
||
ErrCodeEncryptionInterceptFail ErrCode = -2 // 加密失败
|
||
ErrCodeDecryptionInterceptFail ErrCode = -3 // 解密失败
|
||
ErrCodeSuspend ErrCode = -4 // 软件关停中
|
||
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 // 权限不足: 后台系统仅允许超级管理员和运营操作
|
||
ErrCodeOperationToSelfIsNotPermitted ErrCode = -23 // 权限不足:该操作不可对自己执行
|
||
ErrCodeBadParam ErrCode = -30 // 参数错误
|
||
ErrCodeFunctionBlocked ErrCode = -40 // 功能封禁中
|
||
ErrCodeFunctionBlockedPermanently ErrCode = -41 // 功能永久封禁
|
||
ErrCodeMediaUploadFailPleaseCheck ErrCode = -50 // 媒体上传失败,请检查网络或文件大小后重试
|
||
|
||
// 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
|
||
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 //账户未在正常状态
|
||
|
||
// 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 // 参数错误
|
||
ErrCodeVasNoEnoughWithdrawDias ErrCode = -7019 // 参数错误
|
||
ErrCodeVasInvalidVerifycode ErrCode = -7020 // 提现验证码错误
|
||
ErrCodeVasAlipayUniTransferFail ErrCode = -7021 // 支付宝提现失败
|
||
ErrCodeVasOverTodayWithdrawCnt ErrCode = -7022 // 今天提现次数到达上限
|
||
ErrCodeVasOverRefundLimit ErrCode = -7023 // 退款次数达上限
|
||
|
||
// Moment: 8xxx
|
||
ErrCodeMomentSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeMomentSrvFail ErrCode = -8001 // 动态服务错误
|
||
ErrCodeMomentNotExist ErrCode = -8002 // 动态不存在
|
||
// ErrCodeMomentBlockedFromCreatingMoment ErrCode = -8003 // 动态创建已被封禁
|
||
// ErrCodeMomentBlockedFromCreatingMomentPermanently ErrCode = -8004 // 动态创建已被永久封禁
|
||
|
||
// FootPrint: 9xxx
|
||
ErrCodeFootPrintSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeFootPrintSrvFail ErrCode = -9001 // 足迹服务错误
|
||
ErrCodeFootPrintNotExist ErrCode = -9002 // 足迹不存在
|
||
|
||
// ThumbsUp: 10xxx
|
||
ErrCodeThumbsUpSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeThumbsUpSrvFail ErrCode = -10001 // 点赞服务错误
|
||
ErrCodeThumbsUpNotExist ErrCode = -10002 // 点赞不存在
|
||
ErrCodeThumbsUpDuplicateKey ErrCode = -10003 // 重复点赞
|
||
|
||
// 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
|
||
ErrCodeStreamerAuthApprovalSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeStreamerAuthApprovalSrvFail ErrCode = -12001 // 女神认证审批表服务错误
|
||
ErrCodeStreamerAuthApprovalNotExist ErrCode = -12002 // 女神认证审批表不存在
|
||
ErrCodeStreamerAuthApprovalDuplicateKey ErrCode = -12003 // 女神认证审批重复提交
|
||
ErrCodeStreamerAuthApprovalInviterNotExist ErrCode = -12004 // 女神认证审批表邀请人不存在
|
||
ErrCodeStreamerAuthApprovalInviterIsNotAStreamer ErrCode = -12005 // 女神认证审批表邀请人非主播
|
||
|
||
// 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 // 文字审核人工通过失败
|
||
|
||
// ContactCustomerServiceSession: 24xxx
|
||
ErrCodeContactCustomerServiceSessionSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeContactCustomerServiceSessionSrvFail ErrCode = -24001 // 联系客服对话表服务错误
|
||
ErrCodeContactCustomerServiceSessionNotExist ErrCode = -24002 // 联系客服对话表不存在
|
||
|
||
// VeriCodeSendTimes: 25xxx
|
||
ErrCodeVeriCodeSendTimesSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeVeriCodeSendTimesSrvFail ErrCode = -25001 // 验证码频次表服务错误
|
||
ErrCodeVeriCodeSendTimesNotExist ErrCode = -25002 // 验证码频次表不存在
|
||
ErrCodeVeriCodeSendTimesReachedDailyUpperbound ErrCode = -25003 // 验证码发送次数已达每日上限
|
||
|
||
// DailyStatement: 26xxx
|
||
ErrCodeDailyStatementSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeDailyStatementSrvFail ErrCode = -26001 // 每日报表表服务错误
|
||
ErrCodeDailyStatementNotExist ErrCode = -26002 // 每日报表表不存在
|
||
|
||
// AppConfig: 27xxx
|
||
ErrCodeAppConfigSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeAppConfigSrvFail ErrCode = -27001 // 应用配置表服务错误
|
||
ErrCodeAppConfigNotExist ErrCode = -27002 // 应用配置表不存在
|
||
|
||
// MomentCreateTimes: 28xxx
|
||
ErrCodeMomentCreateTimesSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeMomentCreateTimesSrvFail ErrCode = -28001 // 动态创建频次表服务错误
|
||
ErrCodeMomentCreateTimesNotExist ErrCode = -28002 // 动态创建频次表不存在
|
||
ErrCodeMomentCreateTimesReachedDailyUpperbound ErrCode = -28003 // 动态创建次数已达每日上限
|
||
|
||
// MomentAuditTask: 29xxx
|
||
ErrCodeMomentAuditTaskSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeMomentAuditTaskSrvFail ErrCode = -29001 // 动态审核任务表服务错误
|
||
ErrCodeMomentAuditTaskNotExist ErrCode = -29002 // 动态审核任务表不存在
|
||
|
||
// AccountCancellation: 30xxx
|
||
ErrCodeAccountCancellationSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeAccountCancellationSrvFail ErrCode = -30001 // 账户注销服务错误
|
||
ErrCodeAccountCancellationNotExist ErrCode = -30002 // 账户注销不存在
|
||
|
||
// UserVisitOffset: 30xxx
|
||
ErrCodeUserVisitOffsetSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeUserVisitOffsetSrvFail ErrCode = -31001 // 用户游标表服务错误
|
||
ErrCodeUserVisitOffsetNotExist ErrCode = -31002 // 用户游标表不存在
|
||
|
||
// 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 // 该账号处罚仅能对主播进行
|
||
|
||
// Zone: 33xxx
|
||
ErrCodeZoneSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeZoneSrvFail ErrCode = -33001 // 空间服务错误
|
||
ErrCodeZoneNotExist ErrCode = -33002 // 空间不存在
|
||
ErrCodeUnlockedZone ErrCode = -33003 // 未解锁的空间
|
||
ErrCodeZoneDuplicateKey ErrCode = -33004 // 空间已存在
|
||
|
||
// ZoneMoment: 34xxx
|
||
ErrCodeZoneMomentSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeZoneMomentSrvFail ErrCode = -34001 // 私密圈动态服务错误
|
||
ErrCodeZoneMomentNotExist ErrCode = -34002 // 私密圈动态不存在
|
||
ErrCodePaidZoneMomentCreateTimesReachedUpperbound ErrCode = -34003 // 私密圈付费动态创建次数已达上限
|
||
ErrCodeZoneMomentImagesNotEnoughForEncryption ErrCode = -34004 // 私密圈图片贴图片数量少于可预览图片数
|
||
ErrCodeZoneMomentStatusNotPublic ErrCode = -34005 // 私密圈动态非公开状态
|
||
|
||
// ZoneMomentThumbsUp: 35xxx
|
||
ErrCodeZoneMomentThumbsUpSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeZoneMomentThumbsUpSrvFail ErrCode = -35001 // 点赞服务错误
|
||
ErrCodeZoneMomentThumbsUpNotExist ErrCode = -35002 // 点赞不存在
|
||
ErrCodeZoneMomentThumbsUpDuplicateKey ErrCode = -35003 // 重复点赞
|
||
|
||
// ZoneSession: 36xxx
|
||
ErrCodeZoneSessionSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeZoneSessionSrvFail ErrCode = -36001 // 空间对话表服务错误
|
||
ErrCodeZoneSessionNotExist ErrCode = -36002 // 空间对话表不存在
|
||
|
||
// ZoneThirdPartner: 37xxx
|
||
ErrCodeZoneThirdPartnerSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeZoneThirdPartnerSrvFail ErrCode = -37001 // 空间代运营表服务错误
|
||
ErrCodeZoneThirdPartnerNotExist ErrCode = -37002 // 空间代运营表不存在
|
||
ErrCodeZoneThirdPartnerWrongThirdPartner ErrCode = -37003 // 空间代运营不能设置成自己
|
||
ErrCodeZoneThirdPartnerDuplicateKey ErrCode = -37004 // 空间代运营重复创建
|
||
ErrCodeZoneThirdPartnerSharingRatioNotEnough ErrCode = -37005 // 空间代运营的分成比例不足以支持协作者分成比例
|
||
ErrCodeZoneThirdPartnerSharingRatioTooLarge ErrCode = -37006 // 分成比例不可超过50%
|
||
|
||
// ZoneCollaborator: 38xxx
|
||
ErrCodeZoneCollaboratorSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeZoneCollaboratorSrvFail ErrCode = -38001 // 空间协作者表服务错误
|
||
ErrCodeZoneCollaboratorNotExist ErrCode = -38002 // 空间协作者表不存在
|
||
ErrCodeZoneCollaboratorCreateIsZTPOnlyOperation ErrCode = -38003 // 空间协作者表创建操作只有空间代运营可操作
|
||
ErrCodeZoneCollaboratorWrongCollaborator ErrCode = -38004 // 空间协作者不能设置成自己或者空间所有者
|
||
ErrCodeZoneCollaboratorDuplicateKey ErrCode = -38005 // 空间协作者重复创建
|
||
|
||
// MomentCreateTimes: 39xxx
|
||
ErrCodeZoneMomentCreateTimesSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeZoneMomentCreateTimesSrvFail ErrCode = -39001 // 动态创建频次表服务错误
|
||
ErrCodeZoneMomentCreateTimesNotExist ErrCode = -39002 // 动态创建频次表不存在
|
||
ErrCodeZoneMomentCreateTimesReachedDailyUpperbound ErrCode = -39003 // 动态创建次数已达每日上限
|
||
|
||
// DailyStatementZoneInfo: 40xxx
|
||
ErrCodeDailyStatementZoneInfoSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeDailyStatementZoneInfoSrvFail ErrCode = -40001 // 空间相关每日报表服务错误
|
||
ErrCodeDailyStatementZoneInfoNotExist ErrCode = -40002 // 空间相关每日报表不存在
|
||
|
||
// WorkerId: 41xxx
|
||
ErrCodeWorkerIdSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeWorkerIdSrvFail ErrCode = -41001 // 用户职业者id映射表服务错误
|
||
ErrCodeWorkerIdNotExist ErrCode = -41002 // 用户职业者id映射表不存在
|
||
|
||
// SingleDistributeHis: 42xxx
|
||
ErrCodeSingleDistributeHisSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeSingleDistributeHisSrvFail ErrCode = -42001 // 慧用工下发打款历史表服务错误
|
||
ErrCodeSingleDistributeHisNotExist ErrCode = -42002 // 慧用工下发打款历史表不存在
|
||
ErrCodeCurrentSingleDistributeNotTerminated ErrCode = -42003 // 当前慧用工下发打款申请尚未结束
|
||
ErrCodeUnhandleableSingleDistributeStatus ErrCode = -42004 // 无法处理的下发打款状态
|
||
|
||
// Media: 60xxx
|
||
ErrCodeMediaSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeMediaSrvFail ErrCode = -60001 // 媒体服务错误
|
||
ErrCodeMediaNotExist ErrCode = -60002 // 媒体不存在
|
||
ErrCodeMediaUploadFail ErrCode = -60003 // 媒体上传失败
|
||
|
||
// Hvyogo: 61xxx
|
||
ErrCodeHvyogoSrvOk ErrCode = ErrCodeOk
|
||
ErrCodeHvyogoSrvFail ErrCode = -61001 // 慧用工接口服务错误
|
||
|
||
// Websocket: 1xxxxx
|
||
ErrCodeHandleWsFail ErrCode = -100001 // 长链连接失败
|
||
|
||
)
|