Documentation ¶
Index ¶
- type Repo
- type Service
- func (s *Service) Create(permission *models.Permission) (*models.Permission, error)
- func (s *Service) Delete(id uint) error
- func (s *Service) FindAll() ([]models.Permission, error)
- func (s *Service) FindByID(id uint) (*models.Permission, error)
- func (s *Service) Update(id uint, permission *models.Permission) (*models.Permission, 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(permission *models.Permission) (*models.Permission, error)
func (*Service) Update ¶
func (s *Service) Update(id uint, permission *models.Permission) (*models.Permission, error)
Click to show internal directories.
Click to hide internal directories.