Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( New, NewService, )
Functions ¶
This section is empty.
Types ¶
type Form ¶
type QueryParams ¶
func (*QueryParams) ListQueryMods ¶
func (qps *QueryParams) ListQueryMods(limit, offset int) []qm.QueryMod
func (*QueryParams) QueryMods ¶
func (qps *QueryParams) QueryMods() []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) (int64, error) Query(ctx context.Context, limit, offset int, qps *QueryParams) (models.AuthItemSlice, error) Get(ctx context.Context, id string) (*Role, error) Create(ctx context.Context, form *Form) (*Role, error) Update(ctx context.Context, id string, form *Form) (*Role, error) Delete(ctx context.Context, id string) error }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.