Documentation ¶
Index ¶
Constants ¶
View Source
const ( GetRecentActivityERRORCode = 405001 GetRecentActivityERROR = "Get recent activity failed" GetRecentActivitySuccess = "Get recent activity success" )
View Source
const ( GetCheckERRORCode = 403001 GetCheckERROR = "Get check failed" GetCheckSuccess = "Get check success" )
View Source
const ( // 错误代码 CreateCommentErrorCode = 406001 DeleteCommentErrorCode = 406002 ListCommentErrorCode = 406003 GetMoreCommentReplyErrorCode = 406004 // 错误信息 CreateCommentErrorMsg = "Failed to create comment" DeleteCommentErrorMsg = "Failed to delete comment" ListCommentErrorMsg = "Failed to list comments" GetMoreCommentReplyErrorMsg = "Failed to get more comment replies" // 成功信息 CreateCommentSuccessMsg = "Comment created successfully" DeleteCommentSuccessMsg = "Comment deleted successfully" ListCommentSuccessMsg = "Comments listed successfully" GetMoreCommentReplySuccessMsg = "More comment replies retrieved successfully" )
View Source
const ( RequestsOK = 200 // 请求成功 RequestsERROR = 401 // 通用请求错误 ServerRequestError = 402 ServerERROR = 500 // 服务器内部错误 )
View Source
const ( HistoryListSuccess = "History query success" HistoryListError = "History query failed" HistoryDeleteError = "History delete failed" HistoryDeleteSuccess = "History delete success" )
View Source
const ( ListLotteryDrawsError = "list lottery draw failed" ListLotteryDrawsSuccess = "list lottery draw successful" CreateLotteryDrawError = "create lottery draw failed" CreateLotteryDrawSuccess = "create lottery draw successful" GetLotteryDrawError = "get lottery draw failed" GetLotteryDrawSuccess = "get lottery draw successful" ParticipateLotteryDrawError = "participate lottery draw failed" ParticipateLotteryDrawSuccess = "participate lottery draw successful" ListSecondKillEventsError = "list second kill events failed" ListSecondKillEventsSuccess = "list second kill events successful" CreateSecondKillEventError = "create second kill event failed" CreateSecondKillEventSuccess = "create second kill event successful" GetSecondKillEventError = "get second kill event failed" GetSecondKillEventSuccess = "get second kill event successful" ParticipateSecondKillError = "participate second kill failed" ParticipateSecondKillSuccess = "participate second kill successful" )
View Source
const ( PlateCreateSuccess = "Plate create success" PlateCreateError = "Plate create error" PlateUpdateSuccess = "Plate update success" PlateUpdateError = "Plate update error" PlateDeleteSuccess = "Plate delete success" PlateDeleteError = "Plate delete error" PlateListSuccess = "Plate list success" PlateListError = "Plate list error" )
View Source
const ( PostServerERRORCode = 502001 // 系统错误 PostEditERRORCode = 402002 // 帖子编辑错误码 PostUpdateERRORCode = 402003 // 帖子更新错误码 PostPublishERRORCode = 402004 // 帖子发布错误码 PostWithdrawERRORCode = 402005 // 帖子撤销错误码 PostListPubERRORCode = 402006 // 公开帖子列表查询错误码 PostListERRORCode = 402007 // 个人帖子列表查询错误码 PostDeleteERRORCode = 402008 // 帖子删除错误码 PostGetInteractiveERRORCode = 402009 // 帖子获取互动信息错误码 PostLikedERRORCode = 402010 // 帖子点赞错误码 PostCollectERRORCode = 402011 // 帖子收藏错误码 PostGetDetailERRORCode = 402012 // 帖子获取个人详情错误码 PostGetPubDetailERRORCode = 402013 // 帖子获取公开详情错误码 PostGetLikedERRORCode = 402014 // 帖子获取点赞信息错误码 PostGetCollectERRORCode = 402015 // 帖子获取收藏信息错误码 PostGetCountERRORCode = 402016 PostGetCountSuccess = "获取帖子数量成功" PostGetCountERROR = "获取帖子数量失败" PostEditSuccess = "帖子编辑成功" // 帖子编辑成功 PostUpdateSuccess = "帖子更新成功" // 帖子更新成功 PostPublishSuccess = "帖子发布成功" // 帖子发布成功 PostWithdrawSuccess = "帖子撤销成功" // 帖子撤销成功 PostListPubSuccess = "公开帖子查询成功" // 公开帖子查询成功 PostListSuccess = "个人帖子查询成功" // 个人帖子查询成功 PostDeleteSuccess = "帖子删除成功" // 帖子删除成功 PostGetInteractiveSuccess = "互动信息获取成功" // 互动信息获取成功 PostLikedSuccess = "帖子点赞成功" // 帖子点赞成功 PostCollectSuccess = "帖子收藏成功" // 帖子收藏成功 PostGetDetailSuccess = "获取帖子详情成功" // 获取帖子详情成功 PostGetPubDetailSuccess = "获取公开帖子详情成功" // 获取公开帖子详情成功 PostEditERROR = "帖子编辑失败" // 帖子编辑失败 PostUpdateERROR = "帖子更新失败" // 帖子更新失败 PostPublishERROR = "帖子发布失败" // 帖子发布失败 PostWithdrawERROR = "帖子撤销失败" // 帖子撤销失败 PostListPubERROR = "公开帖子查询失败" // 公开帖子查询失败 PostListERROR = "个人帖子查询失败" // 个人帖子查询失败 PostDeleteERROR = "帖子删除失败" // 帖子删除失败 PostGetInteractiveERROR = "互动信息获取失败" // 互动信息获取失败 PostLikedERROR = "帖子点赞失败" // 帖子点赞失败 PostCollectERROR = "帖子收藏失败" // 帖子收藏失败 PostServerERROR = "系统错误" // 系统错误 PostGetDetailERROR = "获取帖子详情失败" // 获取帖子详情失败 PostGetPubDetailERROR = "获取公开帖子详情失败" // 获取公开帖子详情失败 PostGetLikedERROR = "获取帖子点赞信息失败" // 获取帖子点赞信息失败 PostGetCollectERROR = "获取帖子收藏信息失败" // 获取帖子收藏信息失败 PostGetPostERROR = "获取帖子失败" // 获取帖子失败 )
View Source
const ( CreateRelationERRORCode = 407001 GetRelationERRORCode = 407002 FollowUserERRORCode = 407003 CancelFollowUserERRORCode = 407004 GetFolloweeCountErrorCode = 407005 GetFollowerCountErrorCode = 407006 GetFolloweeCountSuccessMsg = "Followee count retrieved successfully" GetFollowerCountSuccessMsg = "Follower count retrieved successfully" GetFolloweeCountERRORMsg = "Failed to get followee count" GetFollowerCountERRORMsg = "Failed to get follower count" CreateRelationERRORMsg = "Failed to create relation" GetRelationERRORMsg = "Failed to get relation" FollowUserERRORMsg = "Failed to follow user" CancelFollowUserERRORMsg = "Failed to cancel follow user" CreateRelationSuccessMsg = "Relation created successfully" GetRelationSuccessMsg = "Relation retrieved successfully" FollowUserSuccessMsg = "User followed successfully" CancelFollowUserSuccessMsg = "User unfollowed successfully" )
View Source
const ( SearchUserERRORCode = 407001 SearchPostERRORCode = 407002 SearchUserERROR = "Search user failed" SearchPostERROR = "Search post failed" SearchUserSuccess = "Search user success" SearchPostSuccess = "Search post success" )
View Source
const ( SMSNumberErr = 404001 InvalidNumber = "电话号码无效" SMSInternalCode = 504001 SMSInternalError = "Server error" )
View Source
const ( UserInvalidInputCode = 401001 // 用户输入错误 UserInvalidOrPasswordCode = 401002 // 用户名或密码错误 UserInvalidOrProfileErrorCode = 401003 // 用户资料无效 UserEmailFormatErrorCode = 401004 // 邮箱格式错误 UserPasswordMismatchErrorCode = 401005 // 两次输入的密码不一致 UserPasswordFormatErrorCode = 401006 // 密码格式错误 UserEmailConflictErrorCode = 401007 // 邮箱冲突 UserListErrorCode = 401008 // 用户获取失败 UserServerErrorCode = 500001 // 用户服务内部错误 UserGetCountErrorCode = 401009 // 获取用户数量失败 UserSignUpSuccess = "用户注册成功" UserGetCountError = "获取用户数量失败" UserGetCountSuccess = "获取用户数量成功" UserListError = "用户获取失败" UserListSuccess = "用户获取成功" UserSignUpFailure = "用户注册失败" UserLoginSuccess = "用户登录成功" UserLoginFailure = "用户登录失败" UserLogoutSuccess = "用户登出成功" UserLogoutFailure = "用户登出失败" UserRefreshTokenSuccess = "令牌刷新成功" UserRefreshTokenFailure = "令牌刷新失败" UserProfileGetSuccess = "获取用户资料成功" UserProfileGetFailure = "获取用户资料失败" UserProfileUpdateSuccess = "更新用户资料成功" UserProfileUpdateFailure = "更新用户资料失败" UserPasswordChangeSuccess = "密码修改成功" UserPasswordChangeFailure = "密码修改失败" UserDeletedSuccess = "用户删除成功" UserDeletedFailure = "用户删除失败" UserSendSMSCodeSuccess = "短信验证码发送成功" UserSendEmailCodeSuccess = "邮箱验证码发送成功" UserEmailFormatError = "邮箱格式错误,请检查" UserPasswordMismatchError = "两次输入的密码不一致,请重新输入" UserPasswordFormatError = "密码必须包含字母、数字和特殊字符,且长度不少于8位" UserEmailConflictError = "该邮箱已被注册" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.