Documentation ¶
Index ¶
Constants ¶
View Source
const ( CreateSuccess = "创建成功" UpdateSuccess = "更新成功" DeleteSuccess = "删除成功" GetSuccess = "获取成功" )
Variables ¶
View Source
var ( ServerError = response.NewError(500, "服务器错误", nil, http.StatusInternalServerError) // UNAUTHORIZED 未登录 UNAUTHORIZED = response.NewError(10000, "未登录", nil, http.StatusUnauthorized) // InvalidToken 非法Token InvalidToken = response.NewError(10001, "非法Token", nil, http.StatusUnauthorized) // TokenExpired Token过期 TokenExpired = response.NewError(10002, "Token过期", nil, http.StatusUnauthorized) // UsernameOrPasswordError 用户名或密码错误 UsernameOrPasswordError = response.NewError(10003, "用户名或密码错误", nil, http.StatusUnauthorized) // PlatformNotExist 平台不存在 PlatformNotExist = response.NewError(10004, "平台不存在", nil, http.StatusUnauthorized) // PlatformIdCanNotEmpty 平台id不能为空 PlatformIdCanNotEmpty = response.NewError(10005, "平台id不能为空", nil, http.StatusUnauthorized) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.