Documentation ¶
Index ¶
- Constants
- func Decode(io io.ReadCloser, v interface{}) error
- func Failed(context *gin.Context, v interface{})
- func GetSeess(context *gin.Context, key interface{}) interface{}
- func InitSession(app *gin.Engine)
- func SetSeess(context *gin.Context, key interface{}, value interface{}) error
- func Success(context *gin.Context, v interface{})
- func VerifyCaptcha(id string, value string) bool
- type CaptchaResult
- type Config
- type DataBaseConfig
- type JsonParse
- type OrmTool
- type RedisConfig
- type RedisStore
- type SmsConfig
Constants ¶
View Source
const ( SUCCESS = 0 // 操作成功 FAILED = 1 // 失败 )
Variables ¶
This section is empty.
Functions ¶
func InitSession ¶
Types ¶
type CaptchaResult ¶
type Config ¶
type Config struct { AppName string `json:"app_name"` AppMode string `json:"app_mode"` AppHost string `json:"app_host"` AppPort string `json:"app_port"` Sms SmsConfig `json:"sms"` DataBase DataBaseConfig `json:"database"` RedisConfig RedisConfig `json:"redis_config"` }
func ParseConfig ¶
type DataBaseConfig ¶
type RedisConfig ¶
type RedisStore ¶
Click to show internal directories.
Click to hide internal directories.