Documentation
¶
Index ¶
- type App
- type Command
- type Config
- type FieldError
- type Partyer
- type Router
- type Service
- func (s *Service) Bind(ctx iris.Context, obj interface{}, errMsg string) bool
- func (s *Service) Get(url string, p interface{}) error
- func (s *Service) Int(ctx iris.Context, name, errMsg string) int
- func (s *Service) String(ctx iris.Context, name, errMsg string) string
- func (s *Service) URLInt(ctx iris.Context, name, errMsg string) int
- func (s *Service) URLString(ctx iris.Context, name, errMsg string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.0.3
type Config struct {
Address string // 监听端口
Secret []byte // JWT密钥
MockID string // 模拟用户ID
Develop bool // 开发模式
Redirect string // 重定向目录
LogDir string // 日志目录
StaticDir string // 静态资源目录
}
Config 配置信息
type FieldError ¶
type FieldError struct {
Field string `json:"field"` // 字段
Tag string `json:"tag"` // 标签
Param string `json:"param"` // 参数
}
FieldError 字段错误信息
Click to show internal directories.
Click to hide internal directories.