Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfDefault = "" ConfPrefix = "Conf模块" ConfInitFailed = "初始化失败" )
Variables ¶
View Source
var ( MySQLInvalidPassword = errors.New("用户名或密码错误") MySQLUserExist = errors.New("用户已存在") MySQLUserNotExist = errors.New("用户不存在") MySQLCommunityIdNotExists = errors.New("社区id不存在") MySQLCommunityIdWrong = errors.New("社区id有误") )
View Source
var ( RedisVoteTimeExpire = errors.New("超出投票时间") RedisReVote = errors.New("重复投票") )
Functions ¶
This section is empty.
Types ¶
type ConfError ¶
func (*ConfError) HandInitFailed ¶
func (e *ConfError) HandInitFailed()
type ControlError ¶
func GetControlE ¶
func GetControlE() *ControlError
func (*ControlError) Hand ¶
func (e *ControlError) Hand() *ControlError
func (*ControlError) Log ¶
func (e *ControlError) Log() *ControlError
func (*ControlError) Receive ¶
func (e *ControlError) Receive(c *gin.Context, err error, code ResCode) *ControlError
type ResponseData ¶
type ResponseData struct { Code ResCode `json:"code"` Msg interface{} `json:"msg"` Data interface{} `json:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.