| 1234567891011121314151617181920212223242526272829 |
- package system
- import (
- "xps/datasource"
- "xps/repositories/system"
- "xps/viewmodels"
- )
- // AppPermit interface
- type AppPermitService interface {
- GetByList(appKey string, roleId int64, keywords string) []viewmodels.AppPermitInfo
- }
- // AppPermitService data struct definition
- type appPermitService struct {
- repo *system.AppPermitRepo
- }
- // Create Instance
- func NewAppPermitService() AppPermitService {
- return &appPermitService{
- repo: system.NewAppPermitRepo(datasource.InstanceMaster()),
- }
- }
- // GetAll
- func (s *appPermitService) GetByList(appKey string, roleId int64, keywords string) []viewmodels.AppPermitInfo {
- return s.repo.GetByList(appKey, roleId, keywords)
- }
|