You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package ecode
|
|
|
|
|
|
|
|
// common
|
|
|
|
const (
|
|
|
|
NotSignIn = 1001
|
|
|
|
NotSignInMsg = "user need sign in"
|
|
|
|
|
|
|
|
ParamInvalid = 1002
|
|
|
|
ParamInvalidMsg = "param invalid"
|
|
|
|
|
|
|
|
CommonErrorMsg = "Oh no, an unexpected error happend"
|
|
|
|
DatabaseError = 1003
|
|
|
|
|
|
|
|
NoPermission = 1004
|
|
|
|
NoPermissionMsg = "You don't have permission"
|
|
|
|
|
|
|
|
NotFound = 1005
|
|
|
|
NotFoundMsg = "404 not found"
|
|
|
|
)
|
|
|
|
|
|
|
|
// article
|
|
|
|
const (
|
|
|
|
ArticleNotFound = 1100
|
|
|
|
ArticleNotFoundMsg = "Target article not found"
|
|
|
|
|
|
|
|
PostNotFound = 1101
|
|
|
|
PostNotFoundMsg = "Target post not found"
|
|
|
|
)
|
|
|
|
|
|
|
|
// comment
|
|
|
|
const (
|
|
|
|
CommentLiked = 1200
|
|
|
|
CommentLikedMsg = "You have agreed this comment before"
|
|
|
|
)
|
|
|
|
|
|
|
|
// user
|
|
|
|
const ()
|