roleservice

package
v0.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLike added in v0.0.5

type AppLike interface {
	DB() db.Client
	Key() string
	UpdateCache(ctx context.Context) error
}

type RoleService

type RoleService struct {
	DB          func() db.Client
	AppKey      func() string
	UpdateCache func(context.Context) error
}

func New added in v0.0.5

func New(app AppLike) *RoleService

func (*RoleService) Create

func (rs *RoleService) Create(c fs.Context, _ any) (*fs.Role, error)

func (*RoleService) CreateResource added in v0.6.0

func (rs *RoleService) CreateResource(api *fs.Resource)

func (*RoleService) Delete

func (rs *RoleService) Delete(c fs.Context, _ any) (any, error)

func (*RoleService) Detail

func (rs *RoleService) Detail(c fs.Context, _ any) (*fs.Role, error)

func (*RoleService) List

func (rs *RoleService) List(c fs.Context, _ any) ([]*fs.Role, error)

func (*RoleService) Update

func (rs *RoleService) Update(c fs.Context, _ any) (_ *fs.Role, err error)

func (*RoleService) UpdateRole added in v0.7.2

func (rs *RoleService) UpdateRole(
	c context.Context,
	id uint64,
	updateRoleData *entity.Entity,
) (_ *fs.Role, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL