live_ecode.go 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. package ecode
  2. // 直播 号段  1000000 - 1999999
  3. // 为防止定义重复,以及方便查找,各个服务错误码可直接选用一个段号
  4. // 调用服务出错已选用一个段号,参见最后
  5. var (
  6. // wallet 1000000 - 1001999
  7. CoinNotEnough = New(1000000)
  8. PayFailed = New(1000001)
  9. // live-test 100 2000 - 100 2999
  10. RoomNotFound = New(1002001)
  11. InvalidParam = New(1002002)
  12. GetAllListRPCError = New(1002003)
  13. GetAllListReturnError = New(1002004)
  14. GetAllListSimpleJSONError = New(1002005)
  15. AttentionRPCError = New(1002006)
  16. AttentionReturnError = New(1002007)
  17. UserTagRPCError = New(1002008)
  18. UserTagReturnError = New(1002009)
  19. UserTagRoomListRPCError = New(1002010)
  20. UserTagRoomListReturnError = New(1002011)
  21. SeaPatrolRPCError = New(1002012)
  22. SeaPatrolReturnError = New(1002013)
  23. ActivityRPCError = New(1002014)
  24. ActivityReturnError = New(1002015)
  25. ChangeGetAllListRPCError = New(1002016)
  26. ChangeGetAllListReturnError = New(1002017)
  27. ChangeGetAllListEmptyError = New(1002018)
  28. SkyHorseError = New(1002019)
  29. ChangeSkyHorseEmptyError = New(1002020)
  30. GetRoomError = New(1002021)
  31. GetRoomEmptyError = New(1002024)
  32. RoomPendantError = New(1002022)
  33. RoomPendantReturnError = New(1002023)
  34. AttentionListRPCError = New(1002100)
  35. RelationFrameWorkCallError = New(1002101)
  36. RelationLiveRPCCodeError = New(1002102)
  37. RelationFrameWorkGoRoutingError = New(1002103)
  38. RoomGetStatusInfoRPCError = New(1002104)
  39. GetMultipleRPCError = New(1002105)
  40. RoomPendentRPCError = New(1002106)
  41. PKIDRpcError = New(1002107)
  42. UnliveAnchorReqParamsError = New(1002108)
  43. LiveAnchorReqParamsError = New(1002109)
  44. NeedLogIn = New(1002110)
  45. RoomFrameWorkCallError = New(1002111)
  46. RoomLiveRPCCodeError = New(1002112)
  47. RoomFrameWorkGoRoutingError = New(1002113)
  48. UserFrameWorkCallError = New(1002114)
  49. UserLiveRPCCodeError = New(1002115)
  50. UserFrameWorkGoRoutingError = New(1002116)
  51. RecordRecordFrameWorkCallError = New(1002117)
  52. RecordLiveRPCCodeError = New(1002118)
  53. RecordFrameWorkGoRoutingError = New(1002119)
  54. RoomNewsRecordFrameWorkCallError = New(1002120)
  55. RoomNewsLiveRPCCodeError = New(1002121)
  56. RoomNewsFrameWorkGoRoutingError = New(1002122)
  57. RoomPendentFrameWorkCallError = New(1002123)
  58. RoomPendentLiveRPCCodeError = New(1002124)
  59. RoomPendentFrameWorkGoRoutingError = New(1002125)
  60. PkIDRecordFrameWorkCallError = New(1002126)
  61. PkIDLiveRPCCodeError = New(1002127)
  62. PkIDFrameWorkGoRoutingError = New(1002128)
  63. FansMedalFrameWorkCallError = New(1002129)
  64. FansMedalLiveRPCCodeError = New(1002130)
  65. FansMedalFrameWorkGoRoutingError = New(1002131)
  66. GiftFrameWorkCallError = New(1002132)
  67. GiftLiveRPCCodeError = New(1002133)
  68. RoomGetRoomIDCodeRPCError = New(1002134)
  69. LiveAnchorReqParamsNil = New(1002135)
  70. GetGrayRuleError = New(1002136)
  71. AccountGRPCError = New(1002137)
  72. AccountGRPCFrameError = New(1002138)
  73. LiveAnchorReqV2ParamsNil = New(1002139)
  74. LiveAnchorReqV2ParamsError = New(1002140)
  75. UserDHHRPCError = New(1002141)
  76. UserDHHReturnError = New(1002142)
  77. UserDHHDataNil = New(1002143)
  78. XanchorGRPCError = New(1002150)
  79. // resource 1003000 - 1003199
  80. ResourceParamErr = New(1003001) // 参数传入错误
  81. TimeForErr = New(1003002) // 时间格式错误
  82. AddResourceErr = New(1003003) // 添加资源失败
  83. RepdAddErr = New(1003004) // 添加平台已存在
  84. SeltResErr = New(1003005) // 资源选择失败
  85. EditResErr = New(1003006) // 编辑资源失败
  86. DeviceError = New(1003007) // 参数<device>传入错误
  87. OfflineResErr = New(1003008) // 下线资源失败
  88. GetListResErr = New(1003009) // 获取资源列表失败
  89. GetBannerErr = New(1003010) // 获取Banner配置失败
  90. GetSplashErr = New(1003011) // 获取闪屏配置失败
  91. CheckURLErr = New(1003012) // 链接格式错误
  92. GetConfAdminErr = New(1003101) // 没有获取到配置
  93. SetConfAdminErr = New(1003102) // 设置配置失败
  94. // dm 1003200 - 1003399
  95. DMallUser = New(1003200) // 系统正在维护(全员弹幕禁言)
  96. DMUserLevel = New(1003201) // 系统正在维护(全员指定等级禁言)
  97. RealName = New(1003202) // 实名认证才可以发言
  98. PhoneBind = New(1003203) // 根据国家实名制认证的相关要求,您需要绑定手机号,才能继续进行操作。
  99. PhoneReal = New(1003204) // 根据国家实名制认证的相关要求,您需要换绑一个非170/171的手机号,才能继续进行操作。
  100. ShieldUser = New(1003205) // u (被播主过滤的用户)
  101. ShieldContent = New(1003206) // k (被播主过滤的内容)
  102. BlockUser = New(1003207) // 你在本房间被禁言
  103. PayLive = New(1003208) // 非常抱歉,本场直播需要购票,即可参与互动(付费直播)
  104. SecDMLimit = New(1003209) // msg in 1s(每秒发言限制)
  105. DMSameMsgLimit = New(1003210) // msg repeat(消息重复)
  106. DMLimitPerRoom = New(1003211) // max limit(单房间每秒限制)
  107. MsgLengthLimit = New(1003212) // 超出限制长度
  108. FilterLimit = New(1003213) // 内容非法(敏感词限制)
  109. CountryLimit = New(1003214) // 你所在的地区暂无法发言(区域限制)
  110. RoomLeverLimit = New(1003215) // 房间等级限制
  111. RoomAllLimit = New(1003216) // 房间全员限制
  112. RoomMedalLimit = New(1003217) // 房间勋章等级限制
  113. DMServiceERR = New(1003218) // 依赖下游服务失败
  114. // user 1004000 - 1004999
  115. UidError = New(1004000) //Uid错误
  116. UserNotFound = New(1004001) //找不到用户信息
  117. // dao-anchor 1005000 - 1005999
  118. DaoAnchorCheckAttrSubIdERROR = New(1005000) //找不到对应的标签子id
  119. // user_ex 1006000 - 1006999
  120. // gift 1007000 - 1007999
  121. // xuser 1008000 - 1008999
  122. XUserAddUserExpReqBizNotAllow = New(1008001)
  123. XUserAddUserExpTypeNotAllow = New(1008002)
  124. XUserAddUserExpNumNotAllow = New(1008003)
  125. XUserAddUserExpUpdateDBError = New(1008004)
  126. XUserAddUserExpParamsEmptyError = New(1008005)
  127. XUserAddUserExpQueryAfterFail = New(1008006)
  128. XUserAddAnchorUpdateDBError = New(1008007)
  129. XUserAddRExpUpdateDBError = New(1008008)
  130. XUserAddUserRExpQueryAfterFail = New(1008009)
  131. XUserAddRoomAdminOverLimitError = New(1008020)
  132. XUserAddRoomAdminIsAdminError = New(1008021)
  133. XUserAddRoomAdminIsSilentError = New(1008022)
  134. XUserAddRoomAdminNotAdminError = New(1008023)
  135. XUserExpGetExpMcFail = New(1008024) // 获取用户经验缓存失败
  136. XUserExpGetExpDBFail = New(1008025) // 获取用户经验缓回源db失败
  137. XUserAddUExpGetParamsNil = New(1008026) // 添加用户经验缓入参为空
  138. XUserGuardFetchRecentTopListFail = New(1008027) // 获取主播最近总督失败
  139. // capusle 1009000 - 1008999
  140. XLotteryCapsuleAreaParamErr = New(1009001)
  141. XLotteryCapsuleSystemErr = New(1009002)
  142. XLotteryCapsuleCoinNotEnough = New(1009003)
  143. XLotteryCapsuleCoinNotChange = New(1009004)
  144. XLotteryCapsulePoolNotChange = New(1009005)
  145. XLotteryCapsulePoolNotOffline = New(1009006)
  146. XLotteryCapsuleOperationFrequent = New(1009007)
  147. // app-conf 1010000 - 1010100
  148. AppConfKeyErr = New(1010000)
  149. //验证码 1990000 - 1990100
  150. VerifyNeed = New(1990000)
  151. VerifyErr = New(1990001)
  152. //网关层错误码 1100000 - 1101999
  153. FILTERNOTPASS = New(1100000) //屏蔽词校验失败
  154. UploadTokenGenErr = New(1100010) // Upload token 创建失败
  155. UploadUploadErr = New(1100011) // 上传失败
  156. UploadBucketErr = New(1100012) // 上传bucket错误
  157. //调用服务出错 19001000 - 19001999
  158. CallRoomError = New(19001000)
  159. CallUserError = New(19001001)
  160. CallRelationError = New(19001002)
  161. CallFansMedalError = New(19001003)
  162. CallMainMemberError = New(19001004)
  163. CallResourceError = New(19001005)
  164. CallMainFilterError = New(19001006)
  165. CallDaoAnchorError = New(19001007)
  166. )