Documentation ¶
Overview ¶
基础模块
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsDev = !IsProd
View Source
var Validator = validator.New()
Functions ¶
func UserErrorf ¶
创建一个用户操作导致的错误,将该错误返回给前端,前端会显示一个弹窗
Types ¶
type SnowflakeIdWorker ¶
type SnowflakeIdWorker struct {
// contains filtered or unexported fields
}
* 构造
Click to show internal directories.
Click to hide internal directories.