Documentation ¶
Index ¶
- type MessageService
- func (s *MessageService) GetJoinProjectMcsData(tenantId consts.TenantId, senderId, projectId, auditId uint, ...) (mcsData integrationDomain.ApprovalReq, err error)
- func (s *MessageService) SendMessageCron(tenantId consts.TenantId)
- func (s *MessageService) SendMessageToMcs(tenantId consts.TenantId, message model.Message) (mcsMessageId string, err error)
- func (s *MessageService) SendMessageToMcsAsync(tenantId consts.TenantId) (err error)
- type PlanService
- type PrivilegeService
- type ProjectService
- func (s *ProjectService) AddMemberRoleForProject(tenantId consts.TenantId, projects *[]v1.ProjectListWithRole, username string)
- func (s *ProjectService) AddMembers(tenantId consts.TenantId, projectId uint, ...) (err error)
- func (s *ProjectService) AddProjectRelatedEngineering(tenantId consts.TenantId, projectId uint, engineering []string) (err error)
- func (s *ProjectService) AddProjectRelatedProducts(tenantId consts.TenantId, projectId uint, products []uint) (err error)
- func (s *ProjectService) AddProjectRelatedSpaces(tenantId consts.TenantId, projectId uint, spaces []string) (err error)
- func (s *ProjectService) Detail(tenantId consts.TenantId, projectId uint) (res integrationDomain.ProjectDetail, err error)
- func (s *ProjectService) GetEngineeringByProject(tenantId consts.TenantId, projectId uint) (res []integrationDomain.EngineeringItem, err error)
- func (s *ProjectService) GetEngineeringOptions() (ret []integrationDomain.EngineeringItem)
- func (s *ProjectService) GetListWithRoleBySpace(tenantId consts.TenantId, spaceCode, username string) (res []v1.ProjectListWithRole, err error)
- func (s *ProjectService) GetMyEngineeringList(token string) (ret []integrationDomain.EngineeringItem)
- func (s *ProjectService) GetProductsByProject(tenantId consts.TenantId, projectId uint) (res []integrationDomain.ProductBaseItem, err error)
- func (s *ProjectService) GetProjectMemberCount(tenantId consts.TenantId, projectId uint) (count int64, err error)
- func (s *ProjectService) GetProjectMemberList(tenantId consts.TenantId, projectId uint) (ret []model.SysUser, err error)
- func (s *ProjectService) GetProjectShortNameAndIdMap(tenantId consts.TenantId, shortNames []string) (res map[string]uint, err error)
- func (s *ProjectService) GetSpaceRoleArrays(tenantId consts.TenantId) (res []string, err error)
- func (s *ProjectService) GetSpacesByProject(tenantId consts.TenantId, projectId uint) (res []integrationDomain.SpaceItem, err error)
- func (s *ProjectService) GetSpacesByUsername(tenantId consts.TenantId, username string) (ret []integrationDomain.SpaceItem, err error)
- func (s *ProjectService) GetUserInfoMap(tenantId consts.TenantId, spaceCodes []string) (res map[string]integrationDomain.UserRoleInfo, userRoles map[string][]string, ...)
- func (s *ProjectService) GetUserProductList(tenantId consts.TenantId, page, pageSize int, username string) (ret []integrationDomain.ProductItem, err error)
- func (s *ProjectService) SaasUserLimit(tenantId consts.TenantId, projectId uint) bool
- func (s *ProjectService) Save(tenantId consts.TenantId, req integrationDomain.ProjectReq, projectId uint) (err error)
- func (s *ProjectService) SaveEngineering(tenantId consts.TenantId, projectId uint, engineering []string) (err error)
- func (s *ProjectService) SaveProducts(tenantId consts.TenantId, projectId uint, products []uint) (err error)
- func (s *ProjectService) SaveSpaceRelatedProjects(tenantId consts.TenantId, spaceCode string, shortNames []string) (err error)
- func (s *ProjectService) SaveSpaces(tenantId consts.TenantId, projectId uint, spaces []string) (err error)
- func (s *ProjectService) SendApplyMessage(tenantId consts.TenantId, projectId, userId, auditId uint, ...) (err error)
- func (s *ProjectService) SyncSpaceMembers(tenantId consts.TenantId, projectId uint, spaces []string) (err error)
- type ReportService
- type RoleService
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 (*MessageService) SendMessageToMcsAsync ¶
func (s *MessageService) SendMessageToMcsAsync(tenantId consts.TenantId) (err error)
type PlanService ¶
type PlanService struct { PlanRepo *repo.PlanRepo `inject:""` RemoteService *thirdparty.RemoteService `inject:""` }
type PrivilegeService ¶
type PrivilegeService struct {
RemoteService *thirdparty.RemoteService `inject:""`
}
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 (*ProjectService) AddProjectRelatedProducts ¶
func (*ProjectService) AddProjectRelatedSpaces ¶
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 (*ProjectService) GetProjectMemberList ¶
func (*ProjectService) GetProjectShortNameAndIdMap ¶
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 (*ProjectService) SaveProducts ¶
func (*ProjectService) SaveSpaceRelatedProjects ¶
func (*ProjectService) SaveSpaces ¶
func (*ProjectService) SendApplyMessage ¶
func (*ProjectService) SyncSpaceMembers ¶
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 (*RoleService) GetRoleValueNameMap ¶
Click to show internal directories.
Click to hide internal directories.