Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 全局日志变量 Log *zap.SugaredLogger Logger *zap.Logger // gin服务对象Logger Server *gin.Engine // 配置文件 Cfg *config.Config // 鉴权对象 Auth *jwt.GinJWTMiddleware // 需要自动检查创建的表 AutoTables map[string]interface{} // 需要自动执行的脚本 AutoSqls map[string]string // 在初始化需要执行的一些方法 InitHandlers map[string]func() // 中间件 MidHandlers map[string]gin.HandlerFunc )
View Source
var CodeMessage = map[ResCode]string{ OK: "成功", PARAM_ERROR: "参数错误", INTERNAL_ERROR: "服务器内部错误", INSERT_ERROR: "新增失败", UPDATE_ERROR: "更新失败", DELETE_ERROR: "删除失败", SELECT_ERROR: "查询失败", AUTH_ERROR: "JWT认证失败", }
Functions ¶
func ResSuccessFullData ¶
func ResSuccessNullData ¶
func ResSuccessPageData ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.