Documentation ¶
Index ¶
- type ButtonService
- func (s *ButtonService) CreateButton(data *domain.Button) (bool, error)
- func (s *ButtonService) DeleteButton(id int64) error
- func (s *ButtonService) GetById(id int64) (*domain.Button, error)
- func (s *ButtonService) List(name string, pageable query.Pageable) (int64, []domain.Button)
- func (s *ButtonService) UpdateButton(data *domain.Button) (bool, error)
- type MenuService
- func (s *MenuService) CreateMenu(data *domain.Menu) (bool, error)
- func (s *MenuService) DeleteMenu(id int64) (bool, error)
- func (s *MenuService) GetByFid(fid int64) ([]*domain.Menu, error)
- func (s *MenuService) GetById(id int64) (*domain.Menu, error)
- func (s *MenuService) List(fid int64, title string, pageable query.Pageable) (int64, []*domain.Menu)
- func (s *MenuService) ListWithButtons(fid int64, title string, pageable query.Pageable) (int64, []*domain.Menu)
- func (s *MenuService) MakeTree(result []*domain.Menu) []*domain.Menu
- func (s *MenuService) UpdateMenu(data *domain.Menu) (bool, error)
- type ModuleService
- func (a *ModuleService) AddTenantModule(module *domain.Module, tenantId string) (*domain.Module, error)
- func (a *ModuleService) CreateModule(module *domain.Module) (*domain.Module, error)
- func (a *ModuleService) DeleteModule(id int64) error
- func (a *ModuleService) DeleteTenantModule(module, tenantId string) error
- func (a *ModuleService) GetByFid(id int64) ([]*domain.Module, error)
- func (a *ModuleService) GetById(id int64) (*domain.Module, error)
- func (a *ModuleService) GetByIds(ids []int64) ([]*domain.Module, error)
- func (a *ModuleService) GetTenantModule(module, tenantId string) (*domain.Module, error)
- func (a *ModuleService) GetTenantModules(tenantId string) ([]*domain.Module, error)
- func (s *ModuleService) List(fid int64, title string, tenantId string, pageable query.Pageable) (int64, []*domain.Module)
- func (s *ModuleService) MakeTree(result []*domain.Module) []*domain.Module
- func (a *ModuleService) SetTenantModules(tenantId string, data []*domain.Module)
- func (a *ModuleService) UpdateModule(module *domain.Module) (*domain.Module, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonService ¶
type ButtonService struct {
ButtonRepository *repository.ButtonRepository `inject:"buttonRepository"`
}
func (*ButtonService) CreateButton ¶
func (s *ButtonService) CreateButton(data *domain.Button) (bool, error)
func (*ButtonService) DeleteButton ¶
func (s *ButtonService) DeleteButton(id int64) error
func (*ButtonService) UpdateButton ¶
func (s *ButtonService) UpdateButton(data *domain.Button) (bool, error)
type MenuService ¶
type MenuService struct { service.BaseService MenuRepository *repository.MenuRepository `inject:"menuRepository"` }
func (*MenuService) CreateMenu ¶
func (s *MenuService) CreateMenu(data *domain.Menu) (bool, error)
func (*MenuService) DeleteMenu ¶
func (s *MenuService) DeleteMenu(id int64) (bool, error)
func (*MenuService) ListWithButtons ¶
func (*MenuService) UpdateMenu ¶
func (s *MenuService) UpdateMenu(data *domain.Menu) (bool, error)
type ModuleService ¶
type ModuleService struct { service.BaseService ModuleRepository *repository.ModuleRepository `inject:"moduleRepository"` }
func (*ModuleService) AddTenantModule ¶
func (*ModuleService) CreateModule ¶
func (*ModuleService) DeleteModule ¶
func (a *ModuleService) DeleteModule(id int64) error
func (*ModuleService) DeleteTenantModule ¶
func (a *ModuleService) DeleteTenantModule(module, tenantId string) error
func (*ModuleService) GetByFid ¶
func (a *ModuleService) GetByFid(id int64) ([]*domain.Module, error)
func (*ModuleService) GetByIds ¶
func (a *ModuleService) GetByIds(ids []int64) ([]*domain.Module, error)
func (*ModuleService) GetTenantModule ¶
func (a *ModuleService) GetTenantModule(module, tenantId string) (*domain.Module, error)
func (*ModuleService) GetTenantModules ¶
func (a *ModuleService) GetTenantModules(tenantId string) ([]*domain.Module, error)
func (*ModuleService) MakeTree ¶
func (s *ModuleService) MakeTree(result []*domain.Module) []*domain.Module
func (*ModuleService) SetTenantModules ¶
func (a *ModuleService) SetTenantModules(tenantId string, data []*domain.Module)
func (*ModuleService) UpdateModule ¶
Click to show internal directories.
Click to hide internal directories.