e

package
v0.0.0-...-1911912 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 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

	INVALID_PARAMS_VERIFY = 11002
	INVALID_PARSE_FORM    = 11001

	ERROR_EXIST_LICENCE      = 10001
	ERROR_EXIST_LICENCE_FAIL = 10002
	ERROR_NOT_EXIST_LICENCE  = 10003
	ERROE_VERSION_LOW        = 10004

	ERROR_USERNAME_PASSWORD = 10011
	ERROR_USERNAME_EXIST    = 10012

	ERROR_AUTH_CHECK_TOKEN_FAIL    = 20001
	ERROR_AUTH_CHECK_TOKEN_TIMEOUT = 20002
	ERROR_AUTH_TOKEN               = 20003
	ERROR_AUTH                     = 20004
	ERROR_AUTH_LOGIN               = 20005

	ERROR_UPLOAD_SAVE_IMAGE_FAIL    = 30001
	ERROR_UPLOAD_CHECK_IMAGE_FAIL   = 30002
	ERROR_UPLOAD_CHECK_IMAGE_FORMAT = 30003
	ERROR_UPLOAD_SAVE_FILE_FAIL     = 30004
	ERROR_UPLOAD_CHECK_FILE_FAIL    = 30005
	ERROR_UPLOAD_CHECK_FILE_FORMAT  = 30006

	ERROR_ADD_MSG_FAIL     = 40011
	ERROR_GET_MSGLIST_FAIL = 40012
	ERROR_GET_MSG_FAIL     = 40013
	ERROR_DELETE_MSG_FAIL  = 40014

	ERROR_ADD_NOTE_FAIL     = 40021
	ERROR_GET_NOTELIST_FAIL = 40022
	ERROR_GET_NOTE_FAIL     = 40023
	ERROR_DELETE_NOTE_FAIL  = 40024

	ERROR_UPLOAD_NDFILE_FAIL   = 40031
	ERROR_GET_NDFILELIST_FAIL  = 40032
	ERROR_MOVE_TO_TRASH_FAIL   = 40033
	ERROR_DELETE_NDFILE_FAIL   = 40034
	ERROR_GET_DIR_LIST_FAIL    = 40035
	ERROR_ADD_DIRL_FAIL        = 40036
	ERROR_UPDATE_DIR_FAIL      = 40037
	ERROR_DELETE_DIR_FAIL      = 40038
	ERROR_DELETE_DIR_IS_PARENT = 40039
	ERROR_DELETE_DIR_HAS_FILE  = 40040

	ERROR_GET_DEPARTMENT_NUMBER_FAIL = 50001
	ERROR_GET_USER_NUMBER_FAIL       = 50002
	ERROR_GET_DEPARTMENT_FAIL        = 50003
	ERROR_GET_USER_FAIL              = 50004
	ERROR_GET_USERBYMOBILE_FAIL      = 50005
	ERROR_ADD_DEPARTMENT_FAIL        = 50006
	ERROR_DELETE_DETP_IS_PARENT      = 50007
	ERROR_DELETE_DETP_NOT_NULL       = 50008
	ERROR_DELETE_DEPARTMENT_FAIL     = 50009
	ERROR_DELETE_USER_FAIL           = 50010
	ERROR_ADD_USER_FAIL              = 50011
	ERROR_GET_DEPT_USER_FAIL         = 50012
	ERROR_DELETE_DETPGYL_NOT_NULL    = 50013
	ERROR_DELETE_USERDEV_FAIL        = 50014
	ERROR_DELETE_USERDEVBGR_FAIL     = 50015

	ERROR_ADD_DEV_FAIL     = 60001
	ERROR_GET_DEV_FAIL     = 60002
	ERROR_GET_DEVLIST_FAIL = 60003
	ERROR_UPDATE_DEV_FAIL  = 60004
	ERROR_XLHEXIST_FAIL    = 60005

	ERROR_SAVE_PROC_FAIL         = 70001
	ERROR_ADD_PROC_FAIL          = 70002
	ERROR_GET_PROCLIST_TODO_FAIL = 70003
	ERROR_GET_PROCLIST_DONE_FAIL = 70004
	ERROR_GET_PROC_FAIL          = 70005
	ERROR_GET_PROCMOD_FAIL       = 70006
	ERROR_ADD_PROCMOD_FAIL       = 70007
)

Variables

View Source
var MsgFlags = map[int]string{
	SUCCESS:        "ok",
	ERROR:          "fail",
	INVALID_PARAMS: "请求参数错误",

	INVALID_PARSE_FORM:              "解析绑定表单错误",
	INVALID_PARAMS_VERIFY:           "参数校验错误",
	ERROR_EXIST_LICENCE:             "已存在该LICENCE",
	ERROR_EXIST_LICENCE_FAIL:        "获取已存在LICENCE失败",
	ERROR_NOT_EXIST_LICENCE:         "该LICENCE不存在",
	ERROE_VERSION_LOW:               "版本过低,请更新新版本",
	ERROR_USERNAME_PASSWORD:         "用户名密码不正确",
	ERROR_AUTH_CHECK_TOKEN_FAIL:     "Token鉴权失败",
	ERROR_AUTH_CHECK_TOKEN_TIMEOUT:  "Token已超时,请重新登录",
	ERROR_AUTH_TOKEN:                "Token生成失败",
	ERROR_AUTH:                      "Token错误",
	ERROR_AUTH_LOGIN:                "未分配学习小组,请联系管理员",
	ERROR_UPLOAD_SAVE_IMAGE_FAIL:    "保存图片失败",
	ERROR_UPLOAD_CHECK_IMAGE_FAIL:   "检查图片失败",
	ERROR_UPLOAD_CHECK_IMAGE_FORMAT: "校验图片错误,图片格式或大小有问题",

	ERROR_UPLOAD_SAVE_FILE_FAIL:    "保存文件失败",
	ERROR_UPLOAD_CHECK_FILE_FAIL:   "检查文件失败",
	ERROR_UPLOAD_CHECK_FILE_FORMAT: "校验文件错误,文件格式或大小有问题",

	ERROR_USERNAME_EXIST: "用户名已存在",

	ERROR_ADD_MSG_FAIL:     "发送信息失败",
	ERROR_GET_MSGLIST_FAIL: "获取消息列表失败",
	ERROR_GET_MSG_FAIL:     "获取消息失败",
	ERROR_DELETE_MSG_FAIL:  "删除消息失败",

	ERROR_ADD_NOTE_FAIL:     "新建记事本失败",
	ERROR_GET_NOTELIST_FAIL: "获取记事本列表失败",
	ERROR_GET_NOTE_FAIL:     "查看记事本失败",
	ERROR_DELETE_NOTE_FAIL:  "删除记事本失败",

	ERROR_UPLOAD_NDFILE_FAIL:   "上传文件失败",
	ERROR_GET_NDFILELIST_FAIL:  "获取文件列表失败",
	ERROR_MOVE_TO_TRASH_FAIL:   "移动到回收站失败",
	ERROR_DELETE_NDFILE_FAIL:   "删除文件失败",
	ERROR_GET_DIR_LIST_FAIL:    "获取文件夹列表失败",
	ERROR_ADD_DIRL_FAIL:        "新建文件夹失败",
	ERROR_UPDATE_DIR_FAIL:      "修改文件夹失败",
	ERROR_DELETE_DIR_FAIL:      "删除文件夹失败",
	ERROR_DELETE_DIR_IS_PARENT: "删除失败,文件夹含子文件夹",
	ERROR_DELETE_DIR_HAS_FILE:  "删除失败,文件夹非空",

	ERROR_GET_DEPARTMENT_NUMBER_FAIL: "获取部门同步条数失败",
	ERROR_GET_USER_NUMBER_FAIL:       "获取用户同步条数失败",
	ERROR_GET_DEPARTMENT_FAIL:        "获取部门列表失败",
	ERROR_GET_DEPT_USER_FAIL:         "获取部门用户列表失败",
	ERROR_GET_USER_FAIL:              "获取用户失败",
	ERROR_GET_USERBYMOBILE_FAIL:      "用户手机号不正确",
	ERROR_ADD_DEPARTMENT_FAIL:        "新增设备机构失败",
	ERROR_DELETE_DETP_IS_PARENT:      "删除失败,该机构含下级机构",
	ERROR_DELETE_DETP_NOT_NULL:       "删除失败,机构非空",
	ERROR_DELETE_DEPARTMENT_FAIL:     "删除部门失败",
	ERROR_DELETE_USER_FAIL:           "删除用户失败",
	ERROR_ADD_USER_FAIL:              "新增人员失败",
	ERROR_DELETE_DETPGYL_NOT_NULL:    "删除失败,该机构存在管理员",
	ERROR_DELETE_USERDEV_FAIL:        "删除失败,该人员(机构)名下有设备",
	ERROR_DELETE_USERDEVBGR_FAIL:     "该人员同时为公共保管人,请确认后删除",

	ERROR_ADD_DEV_FAIL:     "设备登记失败",
	ERROR_GET_DEV_FAIL:     "获取设备登记信息失败",
	ERROR_GET_DEVLIST_FAIL: "获取设备登记信息列表失败",
	ERROR_UPDATE_DEV_FAIL:  "更新设备登记信息失败",
	ERROR_XLHEXIST_FAIL:    "序列号已存在",

	ERROR_SAVE_PROC_FAIL:         "提报事项保存失败",
	ERROR_ADD_PROC_FAIL:          "提报事项提交失败",
	ERROR_GET_PROCLIST_TODO_FAIL: "获取待办列表失败",
	ERROR_GET_PROCLIST_DONE_FAIL: "获取已办列表失败",
	ERROR_GET_PROC_FAIL:          "获取提报事项失败",
	ERROR_GET_PROCMOD_FAIL:       "获取审批流水记录失败",
	ERROR_ADD_PROCMOD_FAIL:       "审批失败",
}

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