channelroleperm

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelRolePerm

type ChannelRolePerm interface {
	GetChannelRolePermission(ctx context.Context, channelId, roleId int64) (model.ChannelRolesPermission, error)
	GetChannelRolePermissions(ctx context.Context, channelId int64) ([]model.ChannelRolesPermission, error)
	SetChannelRolePermission(ctx context.Context, channelId, roleId, accept, deny int64) error
	UpdateChannelRolePermission(ctx context.Context, channelId, roleId, accept, deny int64) error
	RemoveChannelRolePermission(ctx context.Context, channelId, roleId int64) error
}

func New

func New(c *sqlx.DB) ChannelRolePerm

type Entity

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

func (*Entity) GetChannelRolePermission

func (e *Entity) GetChannelRolePermission(ctx context.Context, channelId, roleId int64) (model.ChannelRolesPermission, error)

func (*Entity) GetChannelRolePermissions

func (e *Entity) GetChannelRolePermissions(ctx context.Context, channelId int64) ([]model.ChannelRolesPermission, error)

func (*Entity) RemoveChannelRolePermission

func (e *Entity) RemoveChannelRolePermission(ctx context.Context, channelId, roleId int64) error

func (*Entity) SetChannelRolePermission

func (e *Entity) SetChannelRolePermission(ctx context.Context, channelId, roleId, accept, deny int64) error

func (*Entity) UpdateChannelRolePermission

func (e *Entity) UpdateChannelRolePermission(ctx context.Context, channelId, roleId, accept, deny int64) error

Jump to

Keyboard shortcuts

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