Documentation
¶
Index ¶
- type ChannelRolePerm
- type Entity
- func (e *Entity) GetChannelRolePermission(ctx context.Context, channelId, roleId int64) (model.ChannelRolesPermission, error)
- func (e *Entity) GetChannelRolePermissions(ctx context.Context, channelId int64) ([]model.ChannelRolesPermission, error)
- func (e *Entity) RemoveChannelRolePermission(ctx context.Context, channelId, roleId int64) error
- func (e *Entity) SetChannelRolePermission(ctx context.Context, channelId, roleId, accept, deny int64) error
- func (e *Entity) UpdateChannelRolePermission(ctx context.Context, channelId, roleId, accept, deny int64) error
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 (*Entity) GetChannelRolePermissions ¶
func (*Entity) RemoveChannelRolePermission ¶
func (*Entity) SetChannelRolePermission ¶
Click to show internal directories.
Click to hide internal directories.