roles

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Convertor

type Convertor struct {
	// contains filtered or unexported fields
}

Convertor ...

func (*Convertor) ConvertD2E

func (inst *Convertor) ConvertD2E(c context.Context, src *rbac.RoleDTO) (*rbac.RoleEntity, error)

ConvertD2E ...

func (*Convertor) ConvertE2D

func (inst *Convertor) ConvertE2D(c context.Context, src *rbac.RoleEntity) (*rbac.RoleDTO, error)

ConvertE2D ...

func (*Convertor) ConvertListE2D

func (inst *Convertor) ConvertListE2D(c context.Context, src []*rbac.RoleEntity) ([]*rbac.RoleDTO, error)

ConvertListE2D ...

type Dao

type Dao struct {
	Agent         libgorm.Agent      //starter:inject("#")
	UUIDGenerator lang.UUIDGenerator //starter:inject("#")
	// contains filtered or unexported fields
}

Dao ...

func (*Dao) Delete

func (inst *Dao) Delete(db *gorm.DB, id rbac.RoleID) error

Delete ...

func (*Dao) Find

func (inst *Dao) Find(db *gorm.DB, id rbac.RoleID) (*rbac.RoleEntity, error)

Find ...

func (*Dao) Insert

func (inst *Dao) Insert(db *gorm.DB, o *rbac.RoleEntity) (*rbac.RoleEntity, error)

Insert ...

func (*Dao) List

func (inst *Dao) List(db *gorm.DB, q *rbac.RoleQuery) ([]*rbac.RoleEntity, error)

List ...

func (*Dao) Update

func (inst *Dao) Update(db *gorm.DB, id rbac.RoleID, updater func(*rbac.RoleEntity)) (*rbac.RoleEntity, error)

Update ...

type Service

type Service struct {
	Dao       rbac.RoleDAO       //starter:inject("#")
	Convertor rbac.RoleConvertor //starter:inject("#")
	// contains filtered or unexported fields
}

Service ...

func (*Service) Delete

func (inst *Service) Delete(c context.Context, id rbac.RoleID) error

Delete ...

func (*Service) Find

func (inst *Service) Find(c context.Context, id rbac.RoleID) (*rbac.RoleDTO, error)

Find ...

func (*Service) Insert

func (inst *Service) Insert(c context.Context, o1 *rbac.RoleDTO) (*rbac.RoleDTO, error)

Insert ...

func (*Service) List

func (inst *Service) List(c context.Context, q *rbac.RoleQuery) ([]*rbac.RoleDTO, error)

List ...

func (*Service) Update

func (inst *Service) Update(c context.Context, id rbac.RoleID, o *rbac.RoleDTO) (*rbac.RoleDTO, error)

Update ...

Jump to

Keyboard shortcuts

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