role_permission

package
v0.0.0-...-8b29af2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func NewRepo

func NewRepo(db *database.Database) *Repo

func (*Repo) Create

func (r *Repo) Create(role_permission *models.RolePermission) error

func (*Repo) Delete

func (r *Repo) Delete(id uint) error

func (*Repo) FindAll

func (r *Repo) FindAll() ([]models.RolePermission, error)

func (*Repo) FindByID

func (r *Repo) FindByID(id uint) (*models.RolePermission, error)

func (*Repo) Update

func (r *Repo) Update(role_permission *models.RolePermission) error

type Service

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

func NewService

func NewService(repo *Repo) *Service

func (*Service) Create

func (s *Service) Create(role_permission *models.RolePermission) (*models.RolePermission, error)

func (*Service) Delete

func (s *Service) Delete(id uint) error

func (*Service) FindAll

func (s *Service) FindAll() ([]models.RolePermission, error)

func (*Service) FindByID

func (s *Service) FindByID(id uint) (*models.RolePermission, error)

func (*Service) Update

func (s *Service) Update(id uint, role_permission *models.RolePermission) (*models.RolePermission, error)

Jump to

Keyboard shortcuts

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