Documentation ¶
Index ¶
- type Repo
- type Service
- func (s *Service) Create(role_permission *models.RolePermission) (*models.RolePermission, error)
- func (s *Service) Delete(id uint) error
- func (s *Service) FindAll() ([]models.RolePermission, error)
- func (s *Service) FindByID(id uint) (*models.RolePermission, error)
- func (s *Service) Update(id uint, role_permission *models.RolePermission) (*models.RolePermission, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) Create ¶
func (s *Service) Create(role_permission *models.RolePermission) (*models.RolePermission, error)
func (*Service) Update ¶
func (s *Service) Update(id uint, role_permission *models.RolePermission) (*models.RolePermission, error)
Click to show internal directories.
Click to hide internal directories.