Documentation ¶
Index ¶
Constants ¶
View Source
const ( SUCCESS = 200 ERROR = 500 INVALID_PARAMS = 400 ERROR_NOT_EXIST_PROJECT = 10011 ERROR_CHECK_EXIST_ARTICLE_FAIL = 10012 ERROR_ADD_ARTICLE_FAIL = 10013 ERROR_DELETE_ARTICLE_FAIL = 10014 ERROR_EDIT_ARTICLE_FAIL = 10015 ERROR_COUNT_ARTICLE_FAIL = 10016 ERROR_GET_PROJECTS_FAIL = 10017 ERROR_GET_ARTICLE_FAIL = 10018 ERROR_GEN_ARTICLE_POSTER_FAIL = 10019 ERROR_AUTH_CHECK_TOKEN_FAIL = 20001 ERROR_AUTH_CHECK_TOKEN_TIMEOUT = 20002 ERROR_AUTH_TOKEN = 20003 ERROR_AUTH = 20004 )
Variables ¶
View Source
var MsgFlags = map[int]string{
SUCCESS: "ok",
ERROR: "fail",
INVALID_PARAMS: "请求参数错误",
ERROR_NOT_EXIST_PROJECT: "该文章不存在",
ERROR_ADD_ARTICLE_FAIL: "新增文章失败",
ERROR_DELETE_ARTICLE_FAIL: "删除文章失败",
ERROR_CHECK_EXIST_ARTICLE_FAIL: "检查文章是否存在失败",
ERROR_EDIT_ARTICLE_FAIL: "修改文章失败",
ERROR_COUNT_ARTICLE_FAIL: "统计文章失败",
ERROR_GET_PROJECTS_FAIL: "获取多个文章失败",
ERROR_GET_ARTICLE_FAIL: "获取单个文章失败",
ERROR_GEN_ARTICLE_POSTER_FAIL: "生成文章海报失败",
ERROR_AUTH_CHECK_TOKEN_FAIL: "Token鉴权失败",
ERROR_AUTH_CHECK_TOKEN_TIMEOUT: "Token已超时",
ERROR_AUTH_TOKEN: "Token生成失败",
ERROR_AUTH: "Token",
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.