e

package
v0.0.0-...-9bd1ba9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 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_EXIST_TAG       = 10001
	ERROR_EXIST_TAG_FAIL  = 10002
	ERROR_NOT_EXIST_TAG   = 10003
	ERROR_GET_TAGS_FAIL   = 10004
	ERROR_COUNT_TAG_FAIL  = 10005
	ERROR_ADD_TAG_FAIL    = 10006
	ERROR_EDIT_TAG_FAIL   = 10007
	ERROR_DELETE_TAG_FAIL = 10008
	ERROR_EXPORT_TAG_FAIL = 10009
	ERROR_IMPORT_TAG_FAIL = 10010

	ERROR_NOT_EXIST_ARTICLE        = 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_ARTICLES_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

	ERROR_UPLOAD_SAVE_IMAGE_FAIL    = 30001
	ERROR_UPLOAD_CHECK_IMAGE_FAIL   = 30002
	ERROR_UPLOAD_CHECK_IMAGE_FORMAT = 30003
)

Variables

View Source
var MsgFlags = map[int]string{
	SUCCESS:                         "ok",
	ERROR:                           "fail",
	INVALID_PARAMS:                  "INVALID_PARAMS",
	ERROR_EXIST_TAG:                 "EXIST_TAG",
	ERROR_EXIST_TAG_FAIL:            "EXIST_TAG_FAIL",
	ERROR_NOT_EXIST_TAG:             "NOT_EXIST_TAG",
	ERROR_GET_TAGS_FAIL:             "GET_TAGS_FAIL",
	ERROR_COUNT_TAG_FAIL:            "COUNT_TAG_FAIL",
	ERROR_ADD_TAG_FAIL:              "ADD_TAG_FAIL",
	ERROR_EDIT_TAG_FAIL:             "ERROR_EDIT_TAG_FAIL",
	ERROR_DELETE_TAG_FAIL:           "ERROR_DELETE_TAG_FAIL",
	ERROR_EXPORT_TAG_FAIL:           "ERROR_EXPORT_TAG_FAIL",
	ERROR_IMPORT_TAG_FAIL:           "ERROR_IMPORT_TAG_FAIL",
	ERROR_NOT_EXIST_ARTICLE:         "ERROR_NOT_EXIST_ARTICLE",
	ERROR_ADD_ARTICLE_FAIL:          "ERROR_ADD_ARTICLE_FAIL",
	ERROR_DELETE_ARTICLE_FAIL:       "ERROR_DELETE_ARTICLE_FAIL",
	ERROR_CHECK_EXIST_ARTICLE_FAIL:  "ERROR_CHECK_EXIST_ARTICLE_FAIL",
	ERROR_EDIT_ARTICLE_FAIL:         "ERROR_EDIT_ARTICLE_FAIL",
	ERROR_COUNT_ARTICLE_FAIL:        "ERROR_COUNT_ARTICLE_FAIL",
	ERROR_GET_ARTICLES_FAIL:         "ERROR_GET_ARTICLES_FAIL",
	ERROR_GET_ARTICLE_FAIL:          "ERROR_GET_ARTICLE_FAIL",
	ERROR_GEN_ARTICLE_POSTER_FAIL:   "ERROR_GEN_ARTICLE_POSTER_FAIL",
	ERROR_AUTH_CHECK_TOKEN_FAIL:     "ERROR_AUTH_CHECK_TOKEN_FAIL",
	ERROR_AUTH_CHECK_TOKEN_TIMEOUT:  "ERROR_AUTH_CHECK_TOKEN_TIMEOUT",
	ERROR_AUTH_TOKEN:                "ERROR_AUTH_TOKEN Token",
	ERROR_AUTH:                      "ERROR_AUTH Token",
	ERROR_UPLOAD_SAVE_IMAGE_FAIL:    "ERROR_UPLOAD_SAVE_IMAGE_FAIL",
	ERROR_UPLOAD_CHECK_IMAGE_FAIL:   "ERROR_UPLOAD_CHECK_IMAGE_FAIL",
	ERROR_UPLOAD_CHECK_IMAGE_FORMAT: "UPLOAD_CHECK_IMAGE_FORMAT",
}

Functions

func GetMsg

func GetMsg(code int) string

GetMsg get error information based on Code

Types

This section is empty.

Jump to

Keyboard shortcuts

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