Documentation
¶
Index ¶
- type Convertor
- func (inst *Convertor) ConvertD2E(c context.Context, src *rbac.RoleDTO) (*rbac.RoleEntity, error)
- func (inst *Convertor) ConvertE2D(c context.Context, src *rbac.RoleEntity) (*rbac.RoleDTO, error)
- func (inst *Convertor) ConvertListE2D(c context.Context, src []*rbac.RoleEntity) ([]*rbac.RoleDTO, error)
- type Dao
- func (inst *Dao) Delete(db *gorm.DB, id rbac.RoleID) error
- func (inst *Dao) Find(db *gorm.DB, id rbac.RoleID) (*rbac.RoleEntity, error)
- func (inst *Dao) Insert(db *gorm.DB, o *rbac.RoleEntity) (*rbac.RoleEntity, error)
- func (inst *Dao) List(db *gorm.DB, q *rbac.RoleQuery) ([]*rbac.RoleEntity, error)
- func (inst *Dao) Update(db *gorm.DB, id rbac.RoleID, updater func(*rbac.RoleEntity)) (*rbac.RoleEntity, error)
- type Service
- func (inst *Service) Delete(c context.Context, id rbac.RoleID) error
- func (inst *Service) Find(c context.Context, id rbac.RoleID) (*rbac.RoleDTO, error)
- func (inst *Service) Insert(c context.Context, o1 *rbac.RoleDTO) (*rbac.RoleDTO, error)
- func (inst *Service) List(c context.Context, q *rbac.RoleQuery) ([]*rbac.RoleDTO, error)
- func (inst *Service) Update(c context.Context, id rbac.RoleID, o *rbac.RoleDTO) (*rbac.RoleDTO, error)
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 ¶
ConvertD2E ...
func (*Convertor) ConvertE2D ¶
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) Insert ¶
func (inst *Dao) Insert(db *gorm.DB, o *rbac.RoleEntity) (*rbac.RoleEntity, error)
Insert ...
type Service ¶
type Service struct {
Dao rbac.RoleDAO //starter:inject("#")
Convertor rbac.RoleConvertor //starter:inject("#")
// contains filtered or unexported fields
}
Service ...
Click to show internal directories.
Click to hide internal directories.