Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( New, NewService, )
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
models.AuthItemGroup
}
type QueryParams ¶
type QueryParams struct { api.QueryParams Name string `schema:"name"` }
func (*QueryParams) PaginationQueryMods ¶
func (qps *QueryParams) PaginationQueryMods(limit, offset int) []qm.QueryMod
func (*QueryParams) QueryMods ¶
func (qps *QueryParams) QueryMods() (mods []qm.QueryMod)
func (*QueryParams) Validate ¶
func (qps *QueryParams) Validate() error
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) RegisterRoutes ¶
type Service ¶
type Service interface { Count(ctx context.Context, qps *QueryParams) (count int64, err error) Query(ctx context.Context, limit, offset int, qps *QueryParams) (models.AuthItemGroupSlice, error) Delete(ctx context.Context, id int) error Create(ctx context.Context, form *Form) (models.AuthItemGroup, error) Update(ctx context.Context, id int, form *Form) (*models.AuthItemGroup, error) }
func NewService ¶
func NewService() Service
Click to show internal directories.
Click to hide internal directories.