Documentation ¶
Index ¶
Constants ¶
View Source
const ( SUCCESS = 200 ERROR = 500 InvalidParams = 400 )
View Source
const InputPath = "./pdf_file/input"
View Source
const OutputPath = "./pdf_file/output"
Variables ¶
View Source
var ( ErrorUserExit = "用户已存在" ErrorUserNotExit = "用户不已存在" ErrorPasswordWrong = "密码错误" ErrorGenIDFailed = errors.New("创建用户ID失败") ErrorInvalidID = "无效的ID" ErrorQueryFailed = "查询数据失败" ErrorInsertFailed = errors.New("插入数据失败") )
数据库错误
Functions ¶
This section is empty.
Types ¶
type MyCode ¶
type MyCode int64
const ( CodeSuccess MyCode = 1000 CodeInvalidParams MyCode = 1001 // 请求参数错误 CodeUserExist MyCode = 1002 CodeUserNotExist MyCode = 1003 CodeInvalidPassword MyCode = 1004 CodeServerBusy MyCode = 1005 CodeInvalidToken MyCode = 1006 CodeInvalidAuthFormat MyCode = 1007 CodeNotLogin MyCode = 1008 ErrVoteRepeated MyCode = 1009 ErrorVoteTimeExpire MyCode = 1010 )
Click to show internal directories.
Click to hide internal directories.