e

package
v0.0.0-...-46813e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 0 Imported by: 0

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

func GetMsg

func GetMsg(code int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL