service

package
v0.0.0-...-0f39406 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteService

type RemoteService struct {
}

func (*RemoteService) ApprovalAndMsg

func (s *RemoteService) ApprovalAndMsg(tenantId consts.TenantId, req string) (ret string, err error)

func (*RemoteService) BatchGetMembersBySpaces

func (s *RemoteService) BatchGetMembersBySpaces(tenantId consts.TenantId, spaceCodes []string) (ret []integrationDomain.SpaceMembersAndRolesItem, err error)

func (*RemoteService) BatchGetSpacesByCode

func (s *RemoteService) BatchGetSpacesByCode(tenantId consts.TenantId, spaceCodes []string) (ret []integrationDomain.SpaceItem, err error)

func (*RemoteService) GetHeaders

func (s *RemoteService) GetHeaders(tenantId consts.TenantId, body string) (headers []domain.Header)

func (*RemoteService) GetProductListById

func (s *RemoteService) GetProductListById(tenantId consts.TenantId, productIds []uint) (ret []integrationDomain.ProductBaseItem, err error)

func (*RemoteService) GetProjectInfo

func (s *RemoteService) GetProjectInfo(tenantId consts.TenantId, token, spaceCode string) (ret integrationDomain.ProjectInfo, err error)

func (*RemoteService) GetRoleMenus

func (s *RemoteService) GetRoleMenus(tenantId consts.TenantId, role string) (ret []string, err error)

func (*RemoteService) GetSpaceRoles

func (s *RemoteService) GetSpaceRoles(tenantId consts.TenantId) (ret []integrationDomain.SpaceRole, err error)

func (*RemoteService) GetSpacesByUsername

func (s *RemoteService) GetSpacesByUsername(tenantId consts.TenantId, username string) (ret []integrationDomain.SpaceItem, err error)

func (*RemoteService) GetUserButtonPermissions

func (s *RemoteService) GetUserButtonPermissions(tenantId consts.TenantId, username string) (ret []string, err error)

func (*RemoteService) GetUserInfoByToken

func (s *RemoteService) GetUserInfoByToken(tenantId consts.TenantId, token string) (user integrationDomain.UserInfo, err error)

func (*RemoteService) GetUserMenuPermissions

func (s *RemoteService) GetUserMenuPermissions(tenantId consts.TenantId, username, spaceCode string) (ret []integrationDomain.UserMenuPermission, err error)

func (*RemoteService) GetUserOpenRoles

func (s *RemoteService) GetUserOpenRoles(tenantId consts.TenantId, username string) (ret []integrationDomain.UserRoleItem, err error)

func (*RemoteService) GetUserProductList

func (s *RemoteService) GetUserProductList(tenantId consts.TenantId, page, pageSize int, username string) (ret []integrationDomain.ProductItem, err error)

type User

type User struct {
}

func (*User) GetUserInfoByToken

func (s *User) GetUserInfoByToken(tenantId consts.TenantId, token, origin string) (user v1.UserInfo, err error)

func (*User) GetUserRoleArr

func (s *User) GetUserRoleArr(tenantId consts.TenantId, username string) (ret []string, err error)

func (*User) IsSuperAdmin

func (s *User) IsSuperAdmin(tenantId consts.TenantId, username string) (ret bool, err error)

func (*User) IsSuperAdminInCache

func (s *User) IsSuperAdminInCache(tenantId consts.TenantId, username string) (ret bool, err error)

func (*User) SetIsSuperAdminCache

func (s *User) SetIsSuperAdminCache(tenantId consts.TenantId, username string) (ret bool, err error)

Jump to

Keyboard shortcuts

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