source

package
v0.0.0-...-add256a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigSource

type ConfigSource struct {
	ConfigRepo *repo.ConfigRepo `inject:""`
}

func (*ConfigSource) GetSources

func (s *ConfigSource) GetSources() ([]model.SysConfig, error)

func (*ConfigSource) Init

func (s *ConfigSource) Init(tenantId consts.TenantId) error

type MockJsExpressionSource

type MockJsExpressionSource struct {
	MockJsExpressionRepo *repo.MockJsRepo `inject:""`
}

func (*MockJsExpressionSource) GetSources

func (s *MockJsExpressionSource) GetSources() (ret []model.MockJsExpression, err error)

func (*MockJsExpressionSource) Init

func (s *MockJsExpressionSource) Init(tenantId consts.TenantId) error

type PermSource

type PermSource struct {
	PermRepo *repo.PermRepo `inject:""`
}

func (*PermSource) GetSources

func (s *PermSource) GetSources() []model.SysPerm

func (*PermSource) Init

func (s *PermSource) Init(tenantId consts.TenantId) error

type ProjectMenuSource

type ProjectMenuSource struct {
	ProjectMenuRepo *repo2.ProjectMenuRepo `inject:""`
}

func (*ProjectMenuSource) Init

func (s *ProjectMenuSource) Init(tenantId consts.TenantId) (err error)

type ProjectPermSource

type ProjectPermSource struct {
	ProjectPermRepo *repo.ProjectPermRepo `inject:""`
}

func (*ProjectPermSource) GetSources

func (s *ProjectPermSource) GetSources() []model.ProjectPerm

func (*ProjectPermSource) Init

func (s *ProjectPermSource) Init(tenantId consts.TenantId) error

type ProjectRoleMenuSource

type ProjectRoleMenuSource struct {
	ProjectRoleMenuRepo *repo.ProjectRoleMenuRepo `inject:""`
}

func (*ProjectRoleMenuSource) GetSources

func (s *ProjectRoleMenuSource) GetSources(tenantId consts.TenantId) (res []model.ProjectRoleMenu, err error)

func (*ProjectRoleMenuSource) Init

func (s *ProjectRoleMenuSource) Init(tenantId consts.TenantId) (err error)

type ProjectRolePermSource

type ProjectRolePermSource struct {
	ProjectRolePermRepo *repo2.ProjectRolePermRepo `inject:""`
}

func (*ProjectRolePermSource) GetSources

func (s *ProjectRolePermSource) GetSources(tenantId consts.TenantId) (res map[consts.RoleType][]uint, err error)

func (*ProjectRolePermSource) Init

func (s *ProjectRolePermSource) Init(tenantId consts.TenantId) (err error)

type ProjectRoleSource

type ProjectRoleSource struct {
	ProjectRoleRepo *repo2.ProjectRoleRepo `inject:""`
	PermRepo        *repo2.PermRepo        `inject:""`
}

func (*ProjectRoleSource) GetSources

func (s *ProjectRoleSource) GetSources() (sources []model.ProjectRole, err error)

func (*ProjectRoleSource) Init

func (s *ProjectRoleSource) Init(tenantId consts.TenantId) (err error)

type RoleSource

type RoleSource struct {
	RoleRepo *repo2.RoleRepo `inject:""`
	PermRepo *repo2.PermRepo `inject:""`
}

func (*RoleSource) GetSources

func (s *RoleSource) GetSources(tenantId consts.TenantId) ([]v1.RoleReq, error)

func (*RoleSource) Init

func (s *RoleSource) Init(tenantId consts.TenantId) error

type SampleSource

type SampleSource struct {
}

func (*SampleSource) GetSources

func (s *SampleSource) GetSources() (serve *model.Serve, endpoint *model.Endpoint, err error)

type SysAgentSource

type SysAgentSource struct {
	AgentRepo *repo.SysAgentRepo `inject:""`
}

func (*SysAgentSource) GetSources

func (s *SysAgentSource) GetSources() (configs []model.SysAgent, err error)

func (*SysAgentSource) Init

func (s *SysAgentSource) Init(tenantId consts.TenantId) (err error)

type SysConfigSource

type SysConfigSource struct {
	ConfigRepo *repo.ConfigRepo `inject:""`
}

func (*SysConfigSource) GetSources

func (s *SysConfigSource) GetSources() (configs []model.SysConfig, err error)

func (*SysConfigSource) Init

func (s *SysConfigSource) Init(consts.TenantId) (err error)

type UserSource

type UserSource struct {
	UserRepo    *repo2.UserRepo    `inject:""`
	RoleRepo    *repo2.RoleRepo    `inject:""`
	ProjectRepo *repo2.ProjectRepo `inject:""`
}

func (*UserSource) GetSources

func (s *UserSource) GetSources(tenantId consts.TenantId) ([]v1.UserReq, v1.ProjectReq, error)

func (*UserSource) Init

func (s *UserSource) Init(tenantId consts.TenantId) error

Jump to

Keyboard shortcuts

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