service

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) GetById

func (s *ButtonService) GetById(id int64) (*domain.Button, error)

func (*ButtonService) List

func (s *ButtonService) List(name string, pageable query.Pageable) (int64, []domain.Button)

func (*ButtonService) UpdateButton

func (s *ButtonService) UpdateButton(data *domain.Button) (bool, error)
type MenuService struct {
	service.BaseService
	MenuRepository *repository.MenuRepository `inject:"menuRepository"`
}
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

type ModuleService struct {
	service.BaseService
	ModuleRepository *repository.ModuleRepository `inject:"moduleRepository"`
}

func (*ModuleService) AddTenantModule

func (a *ModuleService) AddTenantModule(module *domain.Module, tenantId string) (*domain.Module, error)

func (*ModuleService) CreateModule

func (a *ModuleService) CreateModule(module *domain.Module) (*domain.Module, error)

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) GetById

func (a *ModuleService) GetById(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) List

func (s *ModuleService) List(fid int64, title string, tenantId string, pageable query.Pageable) (int64, []*domain.Module)

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

func (a *ModuleService) UpdateModule(module *domain.Module) (*domain.Module, error)

Jump to

Keyboard shortcuts

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