Documentation
¶
Index ¶
- type ACIRepository
- func (a *ACIRepository) CheckByRoleId(ctx context.Context, roleId string, resource string, payload string) (bool, error)
- func (a *ACIRepository) CheckByUserId(ctx context.Context, userId string, resource string, payload string) (bool, error)
- func (a *ACIRepository) Create(ctx context.Context, aci *domain.ACI) error
- func (a *ACIRepository) Delete(ctx context.Context, id string) error
- func (a *ACIRepository) GetById(ctx context.Context, id string) (*domain.ACI, error)
- func (a *ACIRepository) GetByPayload(ctx context.Context, payload string) ([]*domain.ACI, error)
- func (a *ACIRepository) GetByResource(ctx context.Context, resource string) ([]*domain.ACI, error)
- func (a *ACIRepository) GetByRoleId(ctx context.Context, roleId string) ([]*domain.ACI, error)
- func (a *ACIRepository) GetByUserId(ctx context.Context, userId string) ([]*domain.ACI, error)
- func (a *ACIRepository) GetResourcesByUserIdAndPayload(ctx context.Context, userId string, payload string) ([]*domain.ACI, error)
- func (a *ACIRepository) GetResourcesByUserIdAndResource(ctx context.Context, userId string, resource string) ([]*domain.ACI, error)
- func (a *ACIRepository) List(ctx context.Context, query *common.QueryOpts) (*common.ListResult[*domain.ACI], error)
- func (a *ACIRepository) Update(ctx context.Context, aci *domain.ACI) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACIRepository ¶
type ACIRepository struct {
// contains filtered or unexported fields
}
func NewACIRepository ¶
func NewACIRepository(dialector gorm.Dialector) *ACIRepository
func (*ACIRepository) CheckByRoleId ¶
func (*ACIRepository) CheckByUserId ¶
func (*ACIRepository) Delete ¶ added in v0.1.11
func (a *ACIRepository) Delete(ctx context.Context, id string) error
func (*ACIRepository) GetByPayload ¶
func (*ACIRepository) GetByResource ¶
func (*ACIRepository) GetByRoleId ¶
func (*ACIRepository) GetByUserId ¶
func (*ACIRepository) GetResourcesByUserIdAndPayload ¶ added in v0.1.13
func (*ACIRepository) GetResourcesByUserIdAndResource ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.