Documentation ¶
Index ¶
Constants ¶
View Source
const ( CACHE_ARTICLE = "ARTICLE" CACHE_TAG = "TAG" )
View Source
const ( SUCCESS = 200 ERROR = 500 INVALID_PARAMS = 400 ERROR_NOT_EXIST_WORD = 10011 ERROR_CHECK_EXIST_WORD_FAIL = 10012 ERROR_ADD_WORD_FAIL = 10013 ERROR_DELETE_WORD_FAIL = 10014 ERROR_EDIT_WORD_FAIL = 10015 ERROR_COUNT_WORD_FAIL = 10016 ERROR_GET_WORDS_FAIL = 10017 ERROR_GET_WORD_FAIL = 10018 ERROR_GEN_WORD_POSTER_FAIL = 10019 )
Variables ¶
View Source
var MsgFlags = map[int]string{
SUCCESS: "ok",
ERROR: "fail",
INVALID_PARAMS: "param is invalid",
ERROR_NOT_EXIST_WORD: "word does not exist",
ERROR_ADD_WORD_FAIL: "failed to add a word",
ERROR_DELETE_WORD_FAIL: "failed to delete word",
ERROR_CHECK_EXIST_WORD_FAIL: "failed to check if word exist",
ERROR_EDIT_WORD_FAIL: "failed to edit word",
ERROR_GET_WORDS_FAIL: "failed to get words",
ERROR_GET_WORD_FAIL: "failed to get word",
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.