service

package
v0.0.0-...-f7a648d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: GPL-3.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 MessageService

type MessageService struct {
	UserRepo        *repo.UserRepo            `inject:""`
	ProjectRepo     *repo.ProjectRepo         `inject:""`
	ProjectRoleRepo *repo.ProjectRoleRepo     `inject:""`
	MessageRepo     *repo.MessageRepo         `inject:""`
	BaseRepo        *repo.BaseRepo            `inject:""`
	RoleService     *RoleService              `inject:""`
	RemoteService   *thirdparty.RemoteService `inject:""`
	Cron            *cron.ServerCron          `inject:""`
}

func (*MessageService) GetJoinProjectMcsData

func (s *MessageService) GetJoinProjectMcsData(tenantId consts.TenantId, senderId, projectId, auditId uint, roleValue consts.RoleType) (mcsData integrationDomain.ApprovalReq, err error)

func (*MessageService) SendMessageCron

func (s *MessageService) SendMessageCron(tenantId consts.TenantId)

func (*MessageService) SendMessageToMcs

func (s *MessageService) SendMessageToMcs(tenantId consts.TenantId, message model.Message) (mcsMessageId string, err error)

func (*MessageService) SendMessageToMcsAsync

func (s *MessageService) SendMessageToMcsAsync(tenantId consts.TenantId) (err error)

type PlanService

type PlanService struct {
	PlanRepo      *repo.PlanRepo            `inject:""`
	RemoteService *thirdparty.RemoteService `inject:""`
}

func (*PlanService) SyncPlan

func (s *PlanService) SyncPlan(tenantId consts.TenantId, id uint) (err error)

type PrivilegeService

type PrivilegeService struct {
	RemoteService *thirdparty.RemoteService `inject:""`
}

func (*PrivilegeService) GetAll

func (s *PrivilegeService) GetAll(tenantId consts.TenantId, username, roleCode string, needSysAuth bool) (ret []string, err error)

type ProjectService

type ProjectService struct {
	RemoteService   *thirdparty.RemoteService  `inject:""`
	IntegrationRepo *repo.IntegrationRepo      `inject:""`
	ProjectRepo     *repo.ProjectRepo          `inject:""`
	UserRepo        *repo.UserRepo             `inject:""`
	ProjectRoleRepo *repo.ProjectRoleRepo      `inject:""`
	MessageRepo     *repo.MessageRepo          `inject:""`
	BaseRepo        *repo.BaseRepo             `inject:""`
	MessageService  *MessageService            `inject:""`
	EngineerService *lecang.EngineeringService `inject:""`
}

func (*ProjectService) AddMemberRoleForProject

func (s *ProjectService) AddMemberRoleForProject(tenantId consts.TenantId, projects *[]v1.ProjectListWithRole, username string)

func (*ProjectService) AddMembers

func (s *ProjectService) AddMembers(tenantId consts.TenantId, projectId uint, members map[string]integrationDomain.UserRoleInfo, memberRoles map[string][]string) (err error)

func (*ProjectService) AddProjectRelatedEngineering

func (s *ProjectService) AddProjectRelatedEngineering(tenantId consts.TenantId, projectId uint, engineering []string) (err error)

func (*ProjectService) AddProjectRelatedProducts

func (s *ProjectService) AddProjectRelatedProducts(tenantId consts.TenantId, projectId uint, products []uint) (err error)

func (*ProjectService) AddProjectRelatedSpaces

func (s *ProjectService) AddProjectRelatedSpaces(tenantId consts.TenantId, projectId uint, spaces []string) (err error)

func (*ProjectService) Detail

func (s *ProjectService) Detail(tenantId consts.TenantId, projectId uint) (res integrationDomain.ProjectDetail, err error)

func (*ProjectService) GetEngineeringByProject

func (s *ProjectService) GetEngineeringByProject(tenantId consts.TenantId, projectId uint) (res []integrationDomain.EngineeringItem, err error)

func (*ProjectService) GetEngineeringOptions

func (s *ProjectService) GetEngineeringOptions() (ret []integrationDomain.EngineeringItem)

func (*ProjectService) GetListWithRoleBySpace

func (s *ProjectService) GetListWithRoleBySpace(tenantId consts.TenantId, spaceCode, username string) (res []v1.ProjectListWithRole, err error)

func (*ProjectService) GetMyEngineeringList

func (s *ProjectService) GetMyEngineeringList(token string) (ret []integrationDomain.EngineeringItem)

func (*ProjectService) GetProductsByProject

func (s *ProjectService) GetProductsByProject(tenantId consts.TenantId, projectId uint) (res []integrationDomain.ProductBaseItem, err error)

func (*ProjectService) GetProjectMemberCount

func (s *ProjectService) GetProjectMemberCount(tenantId consts.TenantId, projectId uint) (count int64, err error)

func (*ProjectService) GetProjectMemberList

func (s *ProjectService) GetProjectMemberList(tenantId consts.TenantId, projectId uint) (ret []model.SysUser, err error)

func (*ProjectService) GetProjectShortNameAndIdMap

func (s *ProjectService) GetProjectShortNameAndIdMap(tenantId consts.TenantId, shortNames []string) (res map[string]uint, err error)

func (*ProjectService) GetSpaceRoleArrays

func (s *ProjectService) GetSpaceRoleArrays(tenantId consts.TenantId) (res []string, err error)

func (*ProjectService) GetSpacesByProject

func (s *ProjectService) GetSpacesByProject(tenantId consts.TenantId, projectId uint) (res []integrationDomain.SpaceItem, err error)

func (*ProjectService) GetSpacesByUsername

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

func (*ProjectService) GetUserInfoMap

func (s *ProjectService) GetUserInfoMap(tenantId consts.TenantId, spaceCodes []string) (res map[string]integrationDomain.UserRoleInfo, userRoles map[string][]string, err error)

func (*ProjectService) GetUserProductList

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

func (*ProjectService) SaasUserLimit

func (s *ProjectService) SaasUserLimit(tenantId consts.TenantId, projectId uint) bool

func (*ProjectService) Save

func (s *ProjectService) Save(tenantId consts.TenantId, req integrationDomain.ProjectReq, projectId uint) (err error)

func (*ProjectService) SaveEngineering

func (s *ProjectService) SaveEngineering(tenantId consts.TenantId, projectId uint, engineering []string) (err error)

func (*ProjectService) SaveProducts

func (s *ProjectService) SaveProducts(tenantId consts.TenantId, projectId uint, products []uint) (err error)

func (*ProjectService) SaveSpaceRelatedProjects

func (s *ProjectService) SaveSpaceRelatedProjects(tenantId consts.TenantId, spaceCode string, shortNames []string) (err error)

func (*ProjectService) SaveSpaces

func (s *ProjectService) SaveSpaces(tenantId consts.TenantId, projectId uint, spaces []string) (err error)

func (*ProjectService) SendApplyMessage

func (s *ProjectService) SendApplyMessage(tenantId consts.TenantId, projectId, userId, auditId uint, roleName consts.RoleType) (err error)

func (*ProjectService) SyncSpaceMembers

func (s *ProjectService) SyncSpaceMembers(tenantId consts.TenantId, projectId uint, spaces []string) (err error)

type ReportService

type ReportService struct {
	PlanReportRepo *repo.PlanReportRepo      `inject:""`
	RemoteService  *thirdparty.RemoteService `inject:""`
	PlanRepo       *repo.PlanRepo            `inject:""`
	UserRepo       *repo.UserRepo            `inject:""`
}

func (*ReportService) DeleteReport

func (s *ReportService) DeleteReport(tenantId consts.TenantId, id uint) (err error)

func (*ReportService) SaveReport

func (s *ReportService) SaveReport(tenantId consts.TenantId, id uint) (err error)

type RoleService

type RoleService struct {
	RemoteService *thirdparty.RemoteService `inject:""`
	UserService   *thirdparty.User          `inject:""`
}

func (*RoleService) GetRoleNameByValue

func (s *RoleService) GetRoleNameByValue(tenantId consts.TenantId, value string) (res string, err error)

func (*RoleService) GetRoleValueNameMap

func (s *RoleService) GetRoleValueNameMap(tenantId consts.TenantId) (res map[string]string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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