Merge pull request 'by Robin at 20240422' (#310) from dev-feat-IRONFANS-70-Robin into feat-IRONFANS-70

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/310
This commit is contained in:
chenhao 2024-04-22 07:21:29 +08:00
commit 0178df0ff0
1 changed files with 32 additions and 25 deletions

View File

@ -191,9 +191,12 @@ var ErrCodeMsgMap = map[ErrCode]string{
ErrCodeZoneThirdPartnerSrvFail: "空间代运营表服务错误",
ErrCodeZoneThirdPartnerNotExist: "空间代运营表不存在",
ErrCodeZoneThirdPartnerWrongThirdPartner: "空间代运营不能设置成自己",
ErrCodeZoneCollaboratorSrvFail: "空间协作者表服务错误",
ErrCodeZoneCollaboratorNotExist: "空间协作者表不存在",
ErrCodeZoneCollaboratorCreateIsZTPOnlyOperation: "空间协作者表创建操作只有空间代运营可操作",
ErrCodeZoneCollaboratorWrongCollaborator: "空间协作者不能设置成自己或者主播",
ErrCodeZoneMomentCreateTimesSrvFail: "空间动态创建频次表服务错误",
ErrCodeZoneMomentCreateTimesNotExist: "空间动态创建频次表不存在",
@ -213,6 +216,7 @@ const (
ErrCodeSelfOnlyOperation ErrCode = -20 // 权限不足:该操作仅可对当前登录用户执行
ErrCodeRolePrivilegesNotEnough ErrCode = -21 // 权限不足: 当前用户角色禁止执行该操作
ErrCodeOpRoleOnlyOperation ErrCode = -22 // 权限不足: 后台系统仅允许超级管理员和运营操作
ErrCodeOperationToSelfIsNotPermitted ErrCode = -23 // 权限不足:该操作不可对自己执行
ErrCodeBadParam ErrCode = -30 // 参数错误
ErrCodeFunctionBlocked ErrCode = -40 // 功能封禁中
ErrCodeFunctionBlockedPermanently ErrCode = -41 // 功能永久封禁
@ -463,11 +467,14 @@ const (
ErrCodeZoneThirdPartnerSrvOk ErrCode = ErrCodeOk
ErrCodeZoneThirdPartnerSrvFail ErrCode = -37001 // 空间代运营表服务错误
ErrCodeZoneThirdPartnerNotExist ErrCode = -37002 // 空间代运营表不存在
ErrCodeZoneThirdPartnerWrongThirdPartner ErrCode = -37003 // 空间代运营不能设置成自己
// ZoneCollaborator: 38xxx
ErrCodeZoneCollaboratorSrvOk ErrCode = ErrCodeOk
ErrCodeZoneCollaboratorSrvFail ErrCode = -38001 // 空间协作者表服务错误
ErrCodeZoneCollaboratorNotExist ErrCode = -38002 // 空间协作者表不存在
ErrCodeZoneCollaboratorCreateIsZTPOnlyOperation ErrCode = -38003 // 空间协作者表创建操作只有空间代运营可操作
ErrCodeZoneCollaboratorWrongCollaborator ErrCode = -38004 // 空间协作者不能设置成自己或者主播
// MomentCreateTimes: 39xxx
ErrCodeZoneMomentCreateTimesSrvOk ErrCode = ErrCodeOk