service

package
v0.0.0-...-57ed434 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 86 Imported by: 0

Documentation

Index

Constants

View Source
const BATCH_SIZE = 1000

Variables

Functions

func AddIssueAttachment

func AddIssueAttachment(orgId, operatorId int64, input vo.AddIssueAttachmentReq) (*vo.Void, errs.SystemErrorInfo)

func AddIssueAttachmentFs

func AddIssueAttachmentFs(orgId, operatorId int64, input vo.AddIssueAttachmentFsReq) ([]bo.ResourceBo, errs.SystemErrorInfo)

func AddProjectMember

func AddProjectMember(orgId, userId int64, sourceChannel string, input vo.RemoveProjectMemberReq) (*vo.Void, errs.SystemErrorInfo)

func AddRecycleRecord

func AddRecycleRecord(orgId, userId int64, projectId int64, relationIds []int64, relationType int) (int64, errs.SystemErrorInfo)

func AppendIterationStat

func AppendIterationStat(iterationBo bo.IterationBo, date string) errs.SystemErrorInfo

func AppendProjectDayStat

func AppendProjectDayStat(projectBo bo.ProjectBo, date string) errs.SystemErrorInfo

date: yyyy-MM-dd

func ArchiveProject

func ArchiveProject(orgId, userId, projectId int64) (*vo.Void, errs.SystemErrorInfo)

func AssemblyUserIdInfo

func AssemblyUserIdInfo(baseUserInfo *bo.BaseUserInfoBo) *vo.UserIDInfo

func AsyncBatchCreateIssue

func AsyncBatchCreateIssue(req *projectvo.BatchCreateIssueReqVo, withoutAuth bool, triggerBy *projectvo.TriggerBy, asyncTaskId string)

AsyncBatchCreateIssue 每 BATCH_SIZE 条为一个批次,执行异步批量插入

func AuthProject

func AuthProject(orgId, userId, projectId int64, path string, operation string) errs.SystemErrorInfo

func AuthProjectPermission

func AuthProjectPermission(orgId, userId, projectId int64, path string, operation string, authFiling bool) errs.SystemErrorInfo

func AuthRecover

func AuthRecover(orgId, userId, projectId, deleteUserId int64) errs.SystemErrorInfo

func BatchAuditIssue

func BatchAuditIssue(reqVo *projectvo.BatchAuditIssueReqVo) ([]int64, errs.SystemErrorInfo)

func BatchCreateIssue

func BatchCreateIssue(req *projectvo.BatchCreateIssueReqVo, withoutAuth bool, triggerBy *projectvo.TriggerBy,
	asyncTaskId string, createCount int64) (
	[]map[string]interface{}, map[string]*uservo.MemberDept, map[string]map[string]interface{}, errs.SystemErrorInfo)

func BatchUpdateIssue

func BatchUpdateIssue(reqVo *projectvo.BatchUpdateIssueReqInnerVo, withoutAuth bool, triggerBy *projectvo.TriggerBy) errs.SystemErrorInfo

func BatchUrgeIssue

func BatchUrgeIssue(reqVo *projectvo.BatchUrgeIssueReqVo) ([]int64, errs.SystemErrorInfo)

func CancelArchivedProject

func CancelArchivedProject(orgId, userId, projectId int64) (*vo.Void, errs.SystemErrorInfo)

func ChangeParentIssue

func ChangeParentIssue(orgId, userId int64, input vo.ChangeParentIssueReq) (*vo.Void, errs.SystemErrorInfo)

变更父任务

func CompleteDelete

func CompleteDelete(orgId, userId, projectId int64, recycleId, relationId int64, relationType int) (*vo.Void, errs.SystemErrorInfo)

彻底删除

func ConvertCode

func ConvertCode(orgId int64, input vo.ConvertCodeReq) (*vo.ConvertCodeResp, errs.SystemErrorInfo)

func ConvertIssueToParent

func ConvertIssueToParent(orgId, userId int64, input vo.ConvertIssueToParentReq) (*vo.Void, errs.SystemErrorInfo)

转化为父任务

func CopyIssue

func CopyIssue(orgId int64, userId int64, input *vo.LessCopyIssueReq) (
	[]map[string]interface{}, map[string]*uservo.MemberDept, map[string]map[string]interface{}, errs.SystemErrorInfo)

func CopyIssueBatch

func CopyIssueBatch(orgId int64, userId int64, input *vo.CopyIssueBatchReq, triggerBy *projectvo.TriggerBy) (
	[]map[string]interface{}, map[string]*uservo.MemberDept, map[string]map[string]interface{}, errs.SystemErrorInfo)

func CopyIssueBatchWithData

func CopyIssueBatchWithData(orgId int64, userId int64, newProjectId, newTableId int64, allIssueIds []int64,
	allCopyData []map[string]interface{}, triggerBy *projectvo.TriggerBy, isSyncCreate, isStaticCopy, isInnerSuper bool) (
	[]map[string]interface{}, map[string]*uservo.MemberDept, map[string]map[string]interface{}, errs.SystemErrorInfo)

func CreateDefaultViewMirror

func CreateDefaultViewMirror(orgId, appId, parentId int64, isSummary bool) errs.SystemErrorInfo

func CreateIssueComment

func CreateIssueComment(orgId, currentUserId int64, input vo.CreateIssueCommentReq) (*vo.Void, errs.SystemErrorInfo)

func CreateIssueCommentWithoutAuth

func CreateIssueCommentWithoutAuth(orgId, currentUserId int64, input vo.CreateIssueCommentReq, issueBo *bo.IssueBo) (*vo.Void, errs.SystemErrorInfo)

func CreateIssueResource

func CreateIssueResource(orgId, userId int64, input *vo.CreateIssueResourceReq) (*vo.Void, errs.SystemErrorInfo)

func CreateIssueSource

func CreateIssueSource(currentUserId int64, input vo.CreateIssueSourceReq) (*vo.Void, errs.SystemErrorInfo)

func CreateIteration

func CreateIteration(orgId, currentUserId int64, input vo.CreateIterationReq) (*vo.Void, errs.SystemErrorInfo)

func CreateProjectDetail

func CreateProjectDetail(currentUserId int64, input vo.CreateProjectDetailReq) (*vo.Void, errs.SystemErrorInfo)

func CreateProjectFolder

func CreateProjectFolder(orgId, operatorId int64, input vo.CreateProjectFolderReq) (*vo.Void, errs.SystemErrorInfo)

func CreateProjectFolderApp

func CreateProjectFolderApp(orgId int64) (int64, int64, errs.SystemErrorInfo)

func CreateProjectInLessCode

func CreateProjectInLessCode(orgId int64, proFormAppId int64, newProjectObj *bo.ProjectBo, input vo.CreateProjectReq) errs.SystemErrorInfo

CreateProjectInLessCode 创建项目时,将新项目同步到无码

func CreateProjectResource

func CreateProjectResource(orgId, operatorId int64, input vo.CreateProjectResourceReq) (*vo.Void, errs.SystemErrorInfo)

func CreateProjectWithoutAuth

func CreateProjectWithoutAuth(reqVo projectvo.CreateProjectReqVo) (*vo.Project, errs.SystemErrorInfo)

func CreateSummaryDefaultViewsForIssue

func CreateSummaryDefaultViewsForIssue(orgId, issueFolderAppId int64) errs.SystemErrorInfo

func DeleteIssueResource

func DeleteIssueResource(orgId, operatorId int64, input vo.DeleteIssueResourceReq) (*vo.Void, errs.SystemErrorInfo)

func DeleteIssueSource

func DeleteIssueSource(orgId, currentUserId int64, input vo.DeleteIssueSourceReq) (*vo.Void, errs.SystemErrorInfo)

func DeleteIssueWithoutAuth

func DeleteIssueWithoutAuth(reqVo projectvo.DeleteIssueReqVo) (*vo.Issue, errs.SystemErrorInfo)

func DeleteIteration

func DeleteIteration(orgId, currentUserId int64, input vo.DeleteIterationReq) (*vo.Void, errs.SystemErrorInfo)

func DeleteLessAttachments

func DeleteLessAttachments(orgId, userId int64, projectId, resourceId int64, versionId int) errs.SystemErrorInfo

把无码那 附件字段的数据彻底删除

func DeleteProject

func DeleteProject(orgId, userId, projectId int64) (*vo.Void, errs.SystemErrorInfo)

func DeleteProjectAttachment

func DeleteProjectAttachment(orgId, operatorId int64, input vo.DeleteProjectAttachmentReq) (*vo.DeleteProjectAttachmentResp, errs.SystemErrorInfo)

func DeleteProjectBatchInner

func DeleteProjectBatchInner(orgId, userId int64, projectIds []int64) errs.SystemErrorInfo

删除项目

func DeleteProjectDetail

func DeleteProjectDetail(currentUserId int64, input vo.DeleteProjectDetailReq) (*vo.Void, errs.SystemErrorInfo)

func DeleteProjectFolder

func DeleteProjectFolder(orgId, operatorId int64, input vo.DeleteProjectFolderReq) (*vo.DeleteProjectFolderResp, errs.SystemErrorInfo)

func DeleteProjectResource

func DeleteProjectResource(orgId, operatorId int64, input vo.DeleteProjectResourceReq) (*vo.DeleteProjectResourceResp, errs.SystemErrorInfo)

目前在项目文件管理中使用这个方法删除 文件、网络资源(飞书云文档)

func DeleteProjectWithoutAuth

func DeleteProjectWithoutAuth(orgId, userId, projectId int64) (*vo.Void, errs.SystemErrorInfo)

DeleteProjectWithoutAuth 删除项目

func DistinctUserIds

func DistinctUserIds(relationBo *[]bo.ProjectRelationBo) ([]int64, errs.SystemErrorInfo)

func ExportData

func ExportData(orgId int64, req projectvo.ExportIssueReqVo) (string, errs.SystemErrorInfo)

ExportData 导出任务数据

func ExportIssueTemplate

func ExportIssueTemplate(orgId int64, projectId int64, tableId int64) (string, errs.SystemErrorInfo)

ExportIssueTemplate 导出任务模板

func ExportUserOrDeptSameNameList

func ExportUserOrDeptSameNameList(orgId int64, projectId int64) (string, errs.SystemErrorInfo)

ExportUserOrDeptSameNameList 导出同名的用户、部门列表

func GetAdminOfProject

func GetAdminOfProject(orgId, appId int64) ([]int64, errs.SystemErrorInfo)

获取项目的管理员列表

func GetBuiltInAndCustomColumns

func GetBuiltInAndCustomColumns(orgId, projectId, tableId int64, proTypeId int64, needHidden bool, extraParam map[string]string, isNeedDocument bool,
) ([]*projectvo.TableColumnData, []*projectvo.TableColumnData, []*projectvo.TableColumnData, errs.SystemErrorInfo)

GetBuiltInAndCustomColumns 获取内置字段列表和自定义字段列表,并返回项目的所有列信息 needHidden 为 true 表示返回隐藏的字段。对于导入,最好拿到所有的字段信息(包含隐藏),用于匹配。 proTypeId 项目类型:1 通用;2 敏捷 extraParam 额外的参数,其中有个**默认**值:{usingType: import}

  • usingType 表示用途,`import` 导入;`export` 导出;

func GetExportFileInfo

func GetExportFileInfo(orgId, projectId int64, fileName string) (relatePath, fileDir, outFileName string, err errs.SystemErrorInfo)

GetExportFileInfo 获取导出的文件相关信息 fileName string 导出的文件名,如:“成员导入模板.xlsx”

func GetExportIssues

func GetExportIssues(orgId, curUserId, tableId int64,
	exportObj *domain.ExportIssue, input *projectvo.ExportIssueReqVoData,
) ([]*bo.ExportIssueBo, errs.SystemErrorInfo)

func GetIssueInfo

func GetIssueInfo(orgId, userId int64, id int64) (*bo.IssueBo, errs.SystemErrorInfo)

func GetIssueInfoList

func GetIssueInfoList(orgId, userId int64, ids []int64) ([]vo.Issue, errs.SystemErrorInfo)

func GetIssueInfoListByDataIds

func GetIssueInfoListByDataIds(orgId, userId int64, dataIds []int64) ([]vo.Issue, errs.SystemErrorInfo)

func GetIssueMembers

func GetIssueMembers(orgId int64, issueId int64) (*projectvo.GetIssueMembersRespData, errs.SystemErrorInfo)

func GetIssueRelationResource

func GetIssueRelationResource(page, size int) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

func GetIssueRowList

func GetIssueRowList(orgId, userId int64, input *tablePb.ListRawRequest) ([]map[string]interface{}, errs.SystemErrorInfo)

func GetLcIssueInfoBatch

func GetLcIssueInfoBatch(orgId int64, issueIds []int64) ([]*bo.IssueBo, errs.SystemErrorInfo)

func GetMenu

func GetMenu(orgId int64, appId int64) (projectvo.MenuData, errs.SystemErrorInfo)

func GetNotCompletedIterationBoList

func GetNotCompletedIterationBoList(orgId int64, projectId int64) ([]bo.IterationBo, errs.SystemErrorInfo)

获取未完成的的迭代列表

func GetOrgIssueAndProjectCount

func GetOrgIssueAndProjectCount(orgId int64) (*projectvo.GetOrgIssueAndProjectCountRespData, errs.SystemErrorInfo)

这个方法仅仅是给PA私有化上报用的,其他地方没有用到

func GetProjectAttachment

func GetProjectAttachment(orgId, operatorId int64, page, size int, input vo.ProjectAttachmentReq) (*vo.AttachmentList, errs.SystemErrorInfo)

func GetProjectAttachmentInfo

func GetProjectAttachmentInfo(orgId, operatorId int64, input vo.ProjectAttachmentInfoReq) (*vo.Attachment, errs.SystemErrorInfo)

func GetProjectBoListByProjectTypeLangCode

func GetProjectBoListByProjectTypeLangCode(orgId int64, projectTypeLangCode *string) ([]bo.ProjectBo, errs.SystemErrorInfo)

通过项目类型langCode获取项目列表

func GetProjectCondAssemblyByInput

func GetProjectCondAssemblyByInput(input *vo.ProjectsReq, currentUserId int64, orgId int64, projectTypeIds []int64) (db.Cond, errs.SystemErrorInfo)

func GetProjectCondAssemblyByParam

func GetProjectCondAssemblyByParam(params map[string]interface{}, currentUserId int64, orgId int64) (db.Cond, errs.SystemErrorInfo)

func GetProjectDetails

func GetProjectDetails(orgId int64, ids []int64) ([]bo.ProjectDetailBo, errs.SystemErrorInfo)

批量获取 project detail 信息

func GetProjectFolder

func GetProjectFolder(orgId, operatorId int64, page, size int, input vo.ProjectFolderReq) (*vo.FolderList, errs.SystemErrorInfo)

func GetProjectIdByAppId

通过无码的 appId 获取对应极星中的项目 id。

func GetProjectIdByChatId

通过群聊的id,获取对应项目的id

func GetProjectIdsByChatId

GetProjectIdsByChatId 通过群聊id,查询该群聊关联的项目 id 列表

func GetProjectMemberIds

func GetProjectMemberIds(orgId, projectId int64, includeAdmin int) (*projectvo.GetProjectMemberIdsData, errs.SystemErrorInfo)

GetProjectMemberIds 获取项目成员ids列表,rest api调用

func GetProjectRelation

func GetProjectRelation(projectId int64, relationType []int64) ([]projectvo.ProjectRelationList, errs.SystemErrorInfo)

func GetProjectRelationUserIds

func GetProjectRelationUserIds(projectId int64, relationType *int64) ([]int64, errs.SystemErrorInfo)

func GetProjectResource

func GetProjectResource(orgId, operatorId int64, page, size int, input vo.ProjectResourceReq) (*vo.ResourceList, errs.SystemErrorInfo)

func GetProjectResourceInfo

func GetProjectResourceInfo(orgId, operatorId int64, input vo.ProjectResourceInfoReq) (*vo.Resource, errs.SystemErrorInfo)

func GetRecycleList

func GetRecycleList(orgId, userId, projectId int64, relationType int, page, size int) (*vo.RecycleBinList, errs.SystemErrorInfo)

func GetSimpleIterationInfo

func GetSimpleIterationInfo(orgId int64, ids []int64) ([]bo.IterationBo, errs.SystemErrorInfo)

func GetSimpleProjectInfo

func GetSimpleProjectInfo(orgId int64, ids []int64) (*[]vo.Project, errs.SystemErrorInfo)

func GetSimpleProjectsByOrgId

func GetSimpleProjectsByOrgId(orgId int64) ([]bo.ProjectBo, errs.SystemErrorInfo)

func GetTableStatus

func GetTableStatus(orgId int64, tableId int64) ([]status.StatusInfoBo, errs.SystemErrorInfo)

func GetTables

func GetTables(orgId, userId, appId int64) (*projectvo.TableData, errs.SystemErrorInfo)

func GetTablesByApps

func GetTablesByApps(orgId, userId int64, appIds []int64) (*projectvo.ReadTablesByAppsData, errs.SystemErrorInfo)

func GetTablesByOrg

func GetTablesByOrg(orgId, userId int64) (*projectvo.TableData, errs.SystemErrorInfo)

func GetTrendsMembers

func GetTrendsMembers(orgId, userId, projectId int64) (*projectvo.GetTrendListMembersData, errs.SystemErrorInfo)

超管-选择所有项目或者某个项目都显示所有成员 项目管理员-选择管理的项目显示项目所有成员 如果是团队成员,只可以选择当前用户

func GetUserOrDeptSameNameList

func GetUserOrDeptSameNameList(orgId int64, dataType string) (projectvo.GetUserOrDeptSameNameListRespData, errs.SystemErrorInfo)

GetUserOrDeptSameNameList 获取同名数据 dataType 数据类型, `user` 同名用户; `dept` 同名部门; all 所有

func HandleGroupChatAtUserName

func HandleGroupChatAtUserName(input *projectvo.HandleGroupChatUserInsAtUserNameReq) (bool, errs.SystemErrorInfo)

HandleGroupChatAtUserName 项目群聊-查询用户在项目内的任务统计信息。响应用户指令:@用户名a

func HandleGroupChatAtUserNameWithIssueTitle

func HandleGroupChatAtUserNameWithIssueTitle(input *projectvo.HandleGroupChatUserInsAtUserNameWithIssueTitleReq) (bool, errs.SystemErrorInfo)

项目群聊,响应用户指令:@用户名a 任务标题1。表示创建负责人为 `用户名a`,标题为 `任务标题1` 的任务。

func HandleGroupChatUserInsProIssue

func HandleGroupChatUserInsProIssue(input *projectvo.HandleGroupChatUserInsProIssueReq) (bool, errs.SystemErrorInfo)

项目群聊,响应用户指令,项目任务,通过 chat id 等参数,获取对应项目下任务的统计信息

func HandleGroupChatUserInsProProgress

func HandleGroupChatUserInsProProgress(input *projectvo.HandleGroupChatUserInsProProgressReq) (bool, errs.SystemErrorInfo)

项目群聊,响应用户指令,项目进展

func HandleGroupChatUserInsProjectSettings

func HandleGroupChatUserInsProjectSettings(openChatId string, sourceChannel string) (bool, errs.SystemErrorInfo)

HandleGroupChatUserInsProjectSettings 项目群聊指令,响应用户指令,群聊推送设置

func ImportIssues

func ImportIssues(orgId, currentUserId int64, input vo.ImportIssuesReq) (projectvo.ImportIssuesRespVoData, errs.SystemErrorInfo)

ImportIssues 通过 excel 数据获取任务内置字段的头部,然后追加“任务类型”下的自定义字段头部。 经过任务状态改造后,ProjectObjectTypeID 参数被改为 tableId。 通用项目可以支持一个 excel 中导入任务到多个不同的任务栏(同项目)中

func IssueAssignRank

func IssueAssignRank(orgId int64, projectId int64, rankTop int) ([]*vo.IssueAssignRankInfo, errs.SystemErrorInfo)

func IssueListSimpleByDataIds

func IssueListSimpleByDataIds(orgId, userId, appId int64, dataIds []int64) ([]*projectvo.IssueSimpleInfo, errs.SystemErrorInfo)

func IssueListStat

func IssueListStat(orgId, userId, projectId int64) (*vo.IssueListStatResp, errs.SystemErrorInfo)

func IssueReportDetail

func IssueReportDetail(shareID string) (*vo.IssueReportResp, errs.SystemErrorInfo)

func IssueResources

func IssueResources(orgId int64, page uint, size uint, input *vo.GetIssueResourcesReq) (*vo.ResourceList, errs.SystemErrorInfo)

func IssueSourceList

func IssueSourceList(orgId int64, page uint, size uint, params vo.IssueSourcesReq) (*vo.IssueSourceList, errs.SystemErrorInfo)

func IssueStatusTypeStat

func IssueStatusTypeStat(orgId, currentUserId int64, input *vo.IssueStatusTypeStatReq) (*vo.IssueStatusTypeStatResp, errs.SystemErrorInfo)

func IssueStatusTypeStatDetail

func IssueStatusTypeStatDetail(orgId, currentUserId int64, input *vo.IssueStatusTypeStatReq) (*vo.IssueStatusTypeStatDetailResp, errs.SystemErrorInfo)

func IterationInfo

func IterationInfo(orgId int64, input vo.IterationInfoReq) (*vo.IterationInfoResp, errs.SystemErrorInfo)

func IterationList

func IterationList(orgId int64, page uint, size uint, params *vo.IterationListReq) (*vo.IterationList, errs.SystemErrorInfo)

func IterationStats

func IterationStats(orgId int64, page uint, size uint, params vo.IterationStatReq) (*vo.IterationStatList, errs.SystemErrorInfo)

func JudgeProjectFiling

func JudgeProjectFiling(orgId, projectId int64) errs.SystemErrorInfo

func JudgeProjectFilingByIssueId

func JudgeProjectFilingByIssueId(orgId, issueId int64) errs.SystemErrorInfo

func LcHomeIssuesForAll

func LcHomeIssuesForAll(orgId, currentUserId int64, page int, size int, input *projectvo.HomeIssueInfoReq, isInnerSuper bool) (*projectvo.LcHomeIssuesRespVo, errs.SystemErrorInfo)

LcHomeIssuesForAll 基于组织下所有项目查询任务列表 @param isInnerSuper 是否是 openAPI或特定需要超管权限的内部请求,如果是,则不验证权限

func LcHomeIssuesForIssue

func LcHomeIssuesForIssue(orgId, currentUserId, appId, tableId, issueId int64, isInnerSuper bool) (*projectvo.IssueDetailInfo, errs.SystemErrorInfo)

LcHomeIssuesForProject 项目下的任务筛选 @param isInnerSuper 如果是 openAPI,则无需校验具体权限,并且不受字段权限控制(可以看到所有字段)

func LcHomeIssuesForProject

func LcHomeIssuesForProject(orgId, currentUserId int64, page int, size int, input *projectvo.HomeIssueInfoReq, isInnerSuper bool) (*projectvo.LcHomeIssuesRespVo, errs.SystemErrorInfo)

LcHomeIssuesForProject 项目下的任务筛选 @param isInnerSuper 如果是 openAPI或特定需要超管权限的内部请求,则无需校验具体权限,并且不受字段权限控制(可以看到所有字段)

func LcViewStatForAll

func LcViewStatForAll(orgId, userId int64) ([]*projectvo.LcViewStatVo, errs.SystemErrorInfo)

func MirrorStat

func MirrorStat(orgId, userId int64, appIdsStr []string) (map[int64]int64, errs.SystemErrorInfo)

func MoveIssue

func MoveIssue(orgId, userId, appId int64, input vo.MoveIssueReq) (*vo.Void, errs.SystemErrorInfo)

func MoveIssueBatch

func MoveIssueBatch(orgId, userId int64, input vo.MoveIssueBatchReq) (*vo.MoveIssueBatchResp, errs.SystemErrorInfo)

func OpenGetDemandSourceList

OpenGetDemandSourceList openAPI 获取需求来源列表

func OpenGetIterationList

OpenGetIterationList openAPI 获取项目的迭代列表

func OpenGetProjectObjectTypeList

OpenGetProjectObjectTypeList openAPI 获取项目的任务类型列表,缺陷、需求、任务等

func OpenGetPropertyList

OpenGetPropertyList openAPI 获取严重程度列表

func OpenPriorityList

OpenPriorityList openAPI 获取项目的优先级列表

func OrgProjectMemberList

func OrgProjectMemberList(orgId int64, sourceChannel string, page, size *int, input vo.OrgProjectMemberListReq) (*vo.OrgProjectMemberListResp, errs.SystemErrorInfo)

func PayLimitNum

PayLimitNum 组织下已经使用的资源数量统计

func ProjectDayStats

func ProjectDayStats(orgId int64, page uint, size uint, params *vo.ProjectDayStatReq) (*vo.ProjectDayStatList, errs.SystemErrorInfo)

func ProjectDetail

func ProjectDetail(orgId, projectId int64) (*vo.ProjectDetail, errs.SystemErrorInfo)

func ProjectInfo

func ProjectInfo(orgId int64, userId int64, input vo.ProjectInfoReq) (*vo.ProjectInfo, errs.SystemErrorInfo)

func ProjectTypes

func ProjectTypes(orgId int64) ([]*vo.ProjectType, errs.SystemErrorInfo)

func ProjectUserList

func ProjectUserList(orgId int64, page int, size int, input vo.ProjectUserListReq) (*vo.ProjectUserListResp, errs.SystemErrorInfo)

func ProjectUserListForFuse

func ProjectUserListForFuse(orgId int64, page int, size int, input vo.ProjectUserListReq) (*vo.ProjectUserListResp, errs.SystemErrorInfo)

func PushAddProjectNotice

func PushAddProjectNotice(orgId, projectId int64, operatorId int64)

func PushDeleteProjectNotice

func PushDeleteProjectNotice(orgId, projectId int64, operatorId int64)

func PushModifyProjectNotice

func PushModifyProjectNotice(orgId, projectId int64, operatorId int64)

func QueryProcessForAsyncTask

func QueryProcessForAsyncTask(orgId int64, input *projectvo.QueryProcessForAsyncTaskReqVoData) (projectvo.AsyncTask, errs.SystemErrorInfo)

QueryProcessForAsyncTask 异步任务查询进度条

func RecoverRecycleBin

func RecoverRecycleBin(orgId, userId, projectId int64, recycleId, relationId int64, relationType int, sourceChannel string) (*vo.Void, errs.SystemErrorInfo)

恢复资源

func RemoveProjectMember

func RemoveProjectMember(orgId, userId int64, sourceChannel string, input vo.RemoveProjectMemberReq) (*vo.Void, errs.SystemErrorInfo)

func ReportMoveEvents

func ReportMoveEvents(orgId, userId int64, oldIssues []*bo.IssueBo, issueIds []int64, fromTableId, targetTableId int64)

func ShareIssueCard

func ShareIssueCard(orgId, currentUserId int64, input projectvo.IssueCardShareReq) (bool, errs.SystemErrorInfo)

func SyncBatchCreateIssue

func SyncBatchCreateIssue(req *projectvo.BatchCreateIssueReqVo, withoutAuth bool, triggerBy *projectvo.TriggerBy) (
	[]map[string]interface{}, map[string]*uservo.MemberDept, map[string]map[string]interface{}, errs.SystemErrorInfo)

SyncBatchCreateIssue 每 BATCH_SIZE 条为一个批次,执行同步批量插入

func SyncBatchUpdateIssue

func SyncBatchUpdateIssue(req *projectvo.BatchUpdateIssueReqInnerVo, withoutAuth bool, triggerBy *projectvo.TriggerBy) errs.SystemErrorInfo

SyncBatchUpdateIssue 每BATCH_SIZE条为一个批次,执行同步批量更新

func UnstarProject

func UnstarProject(orgId, currentUserId int64, projectId int64) (*vo.OperateProjectResp, errs.SystemErrorInfo)

func UpdateIssueSource

func UpdateIssueSource(currentUserId int64, input vo.UpdateIssueSourceReq) (*vo.Void, errs.SystemErrorInfo)

func UpdateIteration

func UpdateIteration(orgId, currentUserId int64, input vo.UpdateIterationReq) (*vo.Void, errs.SystemErrorInfo)

func UpdateIterationSort

func UpdateIterationSort(orgId int64, userId int64, params vo.UpdateIterationSortReq) (*vo.Void, errs.SystemErrorInfo)

func UpdateIterationStatus

func UpdateIterationStatus(orgId, currentUserId int64, input vo.UpdateIterationStatusReq) (*vo.Void, errs.SystemErrorInfo)

func UpdateIterationStatusTime

func UpdateIterationStatusTime(orgId, userId int64, input vo.UpdateIterationStatusTimeReq) (*vo.Void, errs.SystemErrorInfo)

func UpdateProjectDetail

func UpdateProjectDetail(orgId, currentUserId int64, input vo.UpdateProjectDetailReq) (*vo.Void, errs.SystemErrorInfo)

func UpdateProjectFileResource

func UpdateProjectFileResource(orgId, operatorId int64, input vo.UpdateProjectFileResourceReq) (*vo.Void, errs.SystemErrorInfo)

func UpdateProjectFolder

func UpdateProjectFolder(orgId, operatorId int64, input vo.UpdateProjectFolderReq) (*vo.UpdateProjectFolderResp, errs.SystemErrorInfo)

func UpdateProjectResourceName

func UpdateProjectResourceName(orgId, operatorId int64, input vo.UpdateProjectResourceNameReq) (*vo.Void, errs.SystemErrorInfo)

func UpdateProjectWithoutAuth

func UpdateProjectWithoutAuth(reqVo projectvo.UpdateProjectReqVo) (*vo.Project, errs.SystemErrorInfo)

func ViewAuditIssue

func ViewAuditIssue(orgId, userId, issueId int64) errs.SystemErrorInfo

ViewAuditIssue 查看审核任务

func WithdrawIssue

func WithdrawIssue(orgId, userId int64, issueId int64) errs.SystemErrorInfo

WithdrawIssue 撤回审核任务

Types

type AuditIssueVo

type AuditIssueVo struct {
	IssueId    int64
	OldIssueBo *bo.IssueBo
	OldData    map[string]interface{} // 老的无码pg表数据(所有字段)
	Data       map[string]interface{}
}

type AutoScheduleIssueVo

type AutoScheduleIssueVo struct {
	Id                 string
	IssueId            int64
	PlanStartTime      types.Time
	PlanEndTime        types.Time
	PlanStartTimeDelta time.Duration
	PlanEndTimeDelta   time.Duration
	BaRelating         map[string][]string
	LinkTo             []*AutoScheduleIssueVo
	LinkFrom           []*AutoScheduleIssueVo
}

自动排期任务信息

type BatchAuditIssueContext

type BatchAuditIssueContext struct {
	Req                *projectvo.BatchAuditIssueReqVo
	AuditIssues        map[int64]*AuditIssueVo
	AuditIssueIds      []int64 // 真正需要审批/驳回的任务
	RunningIssueStatus int64   // 进行中的第一个任务状态 用于审批驳回时使用
	AppId              int64
	ProjectId          int64
	TableId            int64
	Data               []map[string]interface{}
}

type BatchCreateIssueContext

type BatchCreateIssueContext struct {
	TriggerBy        *projectvo.TriggerBy
	AsyncTaskId      string
	Req              *projectvo.BatchCreateIssueReqVo
	OrgBaseInfo      *bo.BaseOrgInfoBo
	Project          *bo.ProjectBo
	TableMeta        *projectvo.TableMetaData
	TableColumns     map[string]*projectvo.TableColumnData         // 表头
	TableColumnsDeep map[string]*lc_table.LcCommonField            // 表头(解析props信息)
	AllIssueStatus   []status.StatusInfoBo                         // IssueStatus表头
	CreateColumnMap  map[string]struct{}                           // 涉及创建的字段
	CreateColumns    []string                                      // 涉及创建的字段
	UserIds          []int64                                       // 涉及的人员Id
	DeptIds          []int64                                       // 涉及的部门Id
	Users            map[int64]*uservo.GetAllUserByIdsRespDataUser // 涉及的用户
	Depts            map[int64]*uservo.GetAllDeptByIdsRespDataUser // 涉及的部门
	UserDepts        map[string]*uservo.MemberDept                 // 组装好的用户、部门
	RelateData       map[string]map[string]interface{}             // 关联/引用的相关数据
	RelatingIssueIds []int64                                       // 关联前后置修改涉及到的任务Id
	RelatingIssues   map[int64]*bo.IssueBo                         // 关联前后置修改涉及到的任务
	AllParentIds     map[int64]struct{}                            // 涉及的父任务id
	AllParentPaths   map[int64]string                              // 涉及的父任务path
	BeforeOrder      *float64                                      // 涉及的beforeId的order
	AfterOrder       *float64                                      // 涉及的afterId的order
	Now              string                                        // 当前时间

	IssueIds             *bo.IdCodes                    // 创建的IssueIds
	IssueCodes           *bo.IdCodes                    // 创建的IssueCodes
	CreateCount          int64                          // 创建任务数
	CreateIndex          int64                          // 创建index
	CreateIssueIds       []int64                        // 需要创建的任务Id
	CreateIssues         []*CreateIssueVo               // 需要创建的任务
	CreateIssuesMap      map[int64]*CreateIssueVo       // 需要创建的任务
	CreateIssueRelations []*po.PpmPriIssueRelation      // 需创建的issue relations
	CreateAttachments    map[int64]*bo.IssueAttachments // 需添加关联的附件
	IssueTrends          []*bo.IssueTrendsBo            // 任务动态结果集
	CreateResults        []map[string]interface{}       // 创建结果
}

type BatchUpdateIssueContext

type BatchUpdateIssueContext struct {
	TriggerBy            *projectvo.TriggerBy
	Req                  *projectvo.BatchUpdateIssueReqInnerVo
	OrgBaseInfo          *bo.BaseOrgInfoBo
	Project              *bo.ProjectBo
	TableMeta            *projectvo.TableMetaData
	TableColumns         map[string]*projectvo.TableColumnData // 表头
	AllIssueStatus       []status.StatusInfoBo                 // IssueStatus表头
	Todo                 *automationPb.Todo                    // 待办
	UpdateColumnMap      map[string]struct{}                   // 涉及更新的字段
	UpdateColumns        []string                              // 涉及更新的字段
	UpdateIssueIds       []int64                               // 涉及更新的任务IssueID
	UpdateDataIds        []int64                               // 涉及更新的任务DataID
	UpdateIssues         map[int64]*UpdateIssueVo              // 需更新的任务相关信息
	SqlIssueRelations    []*dao.SqlInfo                        // 需更新的issue relations sql语句
	CreateIssueRelations []*po.PpmPriIssueRelation             // 需创建的issue relations
	CreateRecycleBins    []*po.PpmPrsRecycleBin                // 需要放入回收站的数据
	CreateAttachments    map[int64]*bo.IssueAttachments        // 需要添加的附件
	RecycleAttachments   map[int64]*bo.IssueAttachments        // 需要删除的附件
	DeleteAuditors       map[int64][]int64                     // 需要删除的确认人 issueId, userId
	BeforeOrder          *float64                              // 涉及的beforeId的order
	AfterOrder           *float64                              // 涉及的afterId的order
	Now                  string                                // 当前时间

	// 动态相关
	HandledTrendColumnIds map[string]struct{}                           // 需特别处理动态的字段,其余都走通用流程
	IssueTrends           []*bo.IssueTrendsBo                           // 任务动态结果集
	IterationIds          []int64                                       // 涉及到的迭代Id
	UserIds               []int64                                       // 涉及到的UserIds
	DeptIds               []int64                                       // 涉及到的DeptIds
	Iterations            map[int64]*bo.IterationBo                     // 涉及的迭代
	Users                 map[int64]*uservo.GetAllUserByIdsRespDataUser // 涉及的用户
	Depts                 map[int64]*uservo.GetAllDeptByIdsRespDataUser // 涉及的部门
	RelatingIssueIds      []int64                                       // 关联/前后置/单向关联涉及到的`变化的`任务ID
	AllRelatingIssueIds   []int64                                       // 关联/前后置/单向关联涉及到的`所有的`任务ID
	RelatingIssues        map[int64]*bo.IssueBo                         // 关联前后置修改涉及到的任务

	// 自动排期相关
	AutoScheduleSourceIssues []*UpdateIssueVo

	// 待办相关
	UpdateTodo *commonvo.UpdateTodoReq
	TodoResult int
}

type BatchUrgeIssueContext

type BatchUrgeIssueContext struct {
	Req                     *projectvo.BatchUrgeIssueReqVo
	UrgeIssues              map[int64]*UrgeIssueVo
	OrgBaseInfo             *bo.BaseOrgInfoBo
	Project                 *bo.ProjectBo
	TableMeta               *projectvo.TableMetaData
	UserBaseInfos           map[int64]*bo.BaseUserInfoBo
	AppId                   int64
	ProjectId               int64
	TableId                 int64
	UrgeOwnerIssueIds       []int64
	UrgeAuditorIssueIds     []int64
	UrgeOwnerSuccIssueIds   []int64
	UrgeAuditorSuccIssueIds []int64
	AllParentTitles         map[int64]string
}

type CreateIssueVo

type CreateIssueVo struct {
	IssueId              int64
	Data                 map[string]interface{}
	IssueBo              *bo.IssueBo
	UpdateColumns        []string
	RelatingChange       map[string]*bo.RelatingChangeBo
	BaRelatingChange     map[string]*bo.RelatingChangeBo
	SingleRelatingChange map[string]*bo.RelatingChangeBo
}

type UpdateIssueVo

type UpdateIssueVo struct {
	IssueId                        int64
	PData                          map[string]interface{} // 极星issue表需要更新的字段及数据
	LcData                         map[string]interface{} // 无码pg表需要更新的字段及数据
	OldLcData                      map[string]interface{} // 老的无码pg表数据(所有字段)
	OldIssueBo                     *bo.IssueBo
	NewIssueBo                     *bo.IssueBo
	TrendChangeList                []bo.TrendChangeListBo
	UpdateColumns                  []string
	UpdateTitle                    bool
	UpdateOwner                    bool
	UpdateFollower                 bool
	UpdateAuditor                  bool
	NoticeAuditorChange            bool
	NoticeAuditorIssueStatusChange bool
	DeltaPlanEndTime               time.Duration
	RelatingChange                 map[string]*bo.RelatingChangeBo
	BaRelatingChange               map[string]*bo.RelatingChangeBo
	SingleRelatingChange           map[string]*bo.RelatingChangeBo
}

type UrgeIssueVo

type UrgeIssueVo struct {
	IssueId    int64
	OldLcData  map[string]interface{} // 老的无码pg表数据(所有字段)
	OldIssueBo *bo.IssueBo
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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