Documentation ¶
Index ¶
Constants ¶
View Source
const ( //Common SuccessCode = 1000 SuccessMsg = "Success" //Error ParamErrorCode = 1001 InternalErrorCode = 1002 AuthFailedErrorCode = 1003 NetworkFailedErrorCode = 1004 UnknownErrorCode = 1005 )
Variables ¶
View Source
var ( Success = NewMyError(SuccessCode, "Success") //Common ServiceError = NewMyError(InternalErrorCode, "something wrong in the service") ParamError = NewMyError(ParamErrorCode, "parameter error") // User UserExistedError = NewMyError(ParamErrorCode, "user already existed") UserNotFoundError = NewMyError(InternalErrorCode, "user not found") AuthFailedError = NewMyError(AuthFailedErrorCode, "auth failed") //Follow FollowNotFoundError = NewMyError(InternalErrorCode, "follow not found but exec unfollow") //Interaction CommentNotFoundError = NewMyError(InternalErrorCode, "comments not found") //Video VideoUploadError = NewMyError(NetworkFailedErrorCode, "Upload Failed") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.