Documentation
¶
Index ¶
- Variables
- func Auth() services.AuthService
- func Cache() services.CacheService
- func Config() *configs.Config
- func Cookie() services.CookieService
- func DB() services.DBService
- func Exception() *exceptions.Exception
- func Get(key string) services.Service
- func Logger() services.LoggerService
- func Passwd() services.PasswdService
- func Response() *responses.Response
- func Route() services.RouteService
- func Run()
- func SetApp(cliApp *cli.App)
- func SymCrypt() services.SymCryptService
- func Translate() services.TranslateService
- func Upload() services.UploadService
- func Util() services.UtilService
- func Validator() services.ValidatorService
- type Controller
- type Data
- type IndexRequest
- type ModalRequest
- type Model
- type ModelHandle
- type Request
- type RequestIFace
- type Rule
- type Skips
Constants ¶
This section is empty.
Variables ¶
View Source
var App = &app{ Provider: providers.P, }
App 核心实体
Functions ¶
Types ¶
type Controller ¶
type Controller struct{}
type IndexRequest ¶ added in v0.9.1
type ModalRequest ¶ added in v0.9.2
type ModelHandle ¶
type ModelHandle struct {
Model `gorm:"-"`
}
func (*ModelHandle) In ¶
func (m *ModelHandle) In(request RequestIFace, r Rule) (Model, error)
In 数据进来
type Request ¶
type RequestIFace ¶
type RequestIFace interface {
Validate(c *gin.Context, req RequestIFace) error
}
RequestIFace 通用请求接口
Click to show internal directories.
Click to hide internal directories.