Documentation ¶
Index ¶
- Constants
- func NewDefaultAutocompleteDataSource(v string) *vx.AutocompleteDataSource
- type Builder
- func (b *Builder) AllowCrossOrigin(v bool) *Builder
- func (b *Builder) DB(v *gorm.DB) *Builder
- func (b *Builder) Logger(v *zap.Logger) *Builder
- func (b *Builder) Model(v interface{}) (r *ModelBuilder)
- func (b *Builder) Mux(mux Handler)
- func (b *Builder) NewModelBuilder(model interface{}) (mb *ModelBuilder)
- func (b *Builder) Prefix(v string) *Builder
- func (b *Builder) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Handler
- type ModelBuilder
- func (b *ModelBuilder) Columns(v ...string) *ModelBuilder
- func (b *ModelBuilder) JsonHref() string
- func (b *ModelBuilder) NewModel() (r interface{})
- func (b *ModelBuilder) NewModelSlice() (r interface{})
- func (b *ModelBuilder) OrderBy(v string) *ModelBuilder
- func (b *ModelBuilder) Paging(v bool) *ModelBuilder
- func (b *ModelBuilder) SQLCondition(v string) *ModelBuilder
- func (b *ModelBuilder) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (b *ModelBuilder) UriName(v string) *ModelBuilder
- type Response
Constants ¶
View Source
const ( ParamPage = "page" ParamPageSize = "pageSize" ParamSearch = "search" ResponseItems = "data" ResponseTotal = "total" ResponsePages = "pages" ResponseCurrent = "current" )
Variables ¶
This section is empty.
Functions ¶
func NewDefaultAutocompleteDataSource ¶
func NewDefaultAutocompleteDataSource(v string) *vx.AutocompleteDataSource
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) AllowCrossOrigin ¶ added in v3.0.5
func (*Builder) Model ¶
func (b *Builder) Model(v interface{}) (r *ModelBuilder)
func (*Builder) NewModelBuilder ¶
func (b *Builder) NewModelBuilder(model interface{}) (mb *ModelBuilder)
type ModelBuilder ¶
type ModelBuilder struct {
// contains filtered or unexported fields
}
func (*ModelBuilder) Columns ¶
func (b *ModelBuilder) Columns(v ...string) *ModelBuilder
func (*ModelBuilder) JsonHref ¶
func (b *ModelBuilder) JsonHref() string
func (*ModelBuilder) NewModel ¶
func (b *ModelBuilder) NewModel() (r interface{})
func (*ModelBuilder) NewModelSlice ¶
func (b *ModelBuilder) NewModelSlice() (r interface{})
func (*ModelBuilder) OrderBy ¶
func (b *ModelBuilder) OrderBy(v string) *ModelBuilder
func (*ModelBuilder) Paging ¶
func (b *ModelBuilder) Paging(v bool) *ModelBuilder
func (*ModelBuilder) SQLCondition ¶
func (b *ModelBuilder) SQLCondition(v string) *ModelBuilder
func (*ModelBuilder) ServeHTTP ¶
func (b *ModelBuilder) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*ModelBuilder) UriName ¶
func (b *ModelBuilder) UriName(v string) *ModelBuilder
Click to show internal directories.
Click to hide internal directories.