diff --git a/api/errcode/errcode.go b/api/errcode/errcode.go index 443116e6..53cd00c8 100644 --- a/api/errcode/errcode.go +++ b/api/errcode/errcode.go @@ -71,8 +71,9 @@ var ErrCodeMsgMap = map[ErrCode]string{ ErrCodeVasAlipayUniTransferFail: "支付宝提现失败", ErrCodeVasOverTodayWithdrawCnt: "今日提现次数到达上限", - ErrCodeMomentSrvFail: "动态服务错误", - ErrCodeMomentNotExist: "动态不存在", + ErrCodeMomentSrvFail: "动态服务错误", + ErrCodeMomentNotExist: "动态不存在", + ErrCodeMomentNotAStreamer: "当前账号无发帖权限", // ErrCodeMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%s", // ErrCodeMomentBlockedFromCreatingMomentPermanently: "该功能已被永久封禁", @@ -314,9 +315,10 @@ const ( ErrCodeVasOverRefundLimit ErrCode = -7023 // 退款次数达上限 // Moment: 8xxx - ErrCodeMomentSrvOk ErrCode = ErrCodeOk - ErrCodeMomentSrvFail ErrCode = -8001 // 动态服务错误 - ErrCodeMomentNotExist ErrCode = -8002 // 动态不存在 + ErrCodeMomentSrvOk ErrCode = ErrCodeOk + ErrCodeMomentSrvFail ErrCode = -8001 // 动态服务错误 + ErrCodeMomentNotExist ErrCode = -8002 // 动态不存在 + ErrCodeMomentNotAStreamer ErrCode = -8003 // 普通用户禁止发帖 // ErrCodeMomentBlockedFromCreatingMoment ErrCode = -8003 // 动态创建已被封禁 // ErrCodeMomentBlockedFromCreatingMomentPermanently ErrCode = -8004 // 动态创建已被永久封禁