domain

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: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheResourceSize

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

func CheckFolderIds

func CheckFolderIds(folderIds []int64, projectId, orgId int64) errs.SystemErrorInfo

func CheckRelation

func CheckRelation(resourceIds []int64, folderId int64, orgId int64) errs.SystemErrorInfo

func CheckResourceFolderIsDelete

func CheckResourceFolderIsDelete(orgId, projectId, resourceId int64, versionId int) bool

通过resourceId查找folderId是否被删除

func CheckResourceIds

func CheckResourceIds(resourceIds []int64, projectId, orgId int64) errs.SystemErrorInfo

func ClearCacheResourceSize

func ClearCacheResourceSize(orgId int64) errs.SystemErrorInfo

func CreateFolder

func CreateFolder(input bo.CreateFolderBo) (int64, errs.SystemErrorInfo)

func CreateResource

func CreateResource(createResourceBo bo.CreateResourceBo, tx ...sqlbuilder.Tx) (int64, errs.SystemErrorInfo)

func DeleteFolder

func DeleteFolder(folderIds []int64, userId int64, recycleVerisonId int64, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

func DeleteMidTable

func DeleteMidTable(folderIds []int64, orgId, userId int64, recycleVersionId int64, tx ...sqlbuilder.Tx) ([]int64, errs.SystemErrorInfo)

func DeleteResource

func DeleteResource(resourceIds []int64, folderId *int64, orgId, appId, userId int64, projectId, issueId int64,
	recycleVersionId int64, tx sqlbuilder.Tx) errs.SystemErrorInfo

func DeleteResourceRelation

func DeleteResourceRelation(orgId, userId, projectId int64, issueIds []int64, resourceIds []int64, sourceTypes []int,
	recycleVersionId int64, columnId string, isDeleteResource bool, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

func DingFileListById

func DingFileListById(orgId int64, outOrgId, outUserId, unionId string, spaceId string, dirId string, size int) ([]*resourcevo.DingFileListData, errs.SystemErrorInfo)

func GetAllRelateFolderIds

func GetAllRelateFolderIds(orgId, project int64, folderIds []int64, recycleId int64) ([]int64, errs.SystemErrorInfo)

recycleId 如果传了版本id,表示是查询已删除的文件夹

func GetBaseUserInfoMap

func GetBaseUserInfoMap(orgId int64, userIds []int64) (map[interface{}]interface{}, errs.SystemErrorInfo)

func GetDingSpaceList

func GetDingSpaceList(outUserId, unionId string, outOrgId string, nextToken string, size int) ([]*resourcevo.SpaceInfo, errs.SystemErrorInfo)

func GetFolder

func GetFolder(parentId *int64, projectId int64, page bo.PageBo) (*[]po.PpmResFolder, uint64, errs.SystemErrorInfo)

func GetFolderById

func GetFolderById(folderIds []int64) ([]bo.FolderBo, errs.SystemErrorInfo)

func GetFolderTree

func GetFolderTree(orgId, projectId int64, recycleId int64) (map[int64]*bo.FolderTreeBo, errs.SystemErrorInfo)

获取某些目录下的所有目录

func GetIdByPath

func GetIdByPath(orgId int64, resourcePath string, resourceType int) (int64, errs.SystemErrorInfo)

func GetIssueIdsByResource

func GetIssueIdsByResource(orgId, projectId int64, resourceIds []int64) ([]resourcevo.GetIssueIdsByResourceIdsResp, errs.SystemErrorInfo)

func GetOrgFunctionInfoMap

func GetOrgFunctionInfoMap(functions []orgvo.FunctionLimitObj) map[string]orgvo.FunctionLimitObj

func GetPayFunctionLimitResourceNum

func GetPayFunctionLimitResourceNum(orgId int64, functionCode string) (int, errs.SystemErrorInfo)

GetPayFunctionLimitResourceNum 获取功能限制的资源数量。仅适用于:项目、迭代、任务

func GetRelationIssueIdsAndResourceIds

func GetRelationIssueIdsAndResourceIds(cond db.Cond, tx sqlbuilder.Tx) ([]int64, []int64, errs.SystemErrorInfo)

func GetResourceBoList

func GetResourceBoList(page uint, size uint, input resourcevo.GetResourceBoListCond) (*[]bo.ResourceBo, int64, errs.SystemErrorInfo)

func GetResourceBoListByPage

func GetResourceBoListByPage(cond db.Cond, union *db.Union, pageBo bo.PageBo) (*[]bo.ResourceBo, int64, errs.SystemErrorInfo)

func GetResourceByIds

func GetResourceByIds(resourceIds []int64) ([]bo.ResourceBo, errs.SystemErrorInfo)

获取资源信息

func GetResourceIdsByFolderId

func GetResourceIdsByFolderId(folderId, orgId int64) (*[]int64, errs.SystemErrorInfo)

func GetResourceInfo

func GetResourceInfo(orgId, resourceId int64) (*bo.ResourceBo, errs.SystemErrorInfo)

func GetResourceRelations

func GetResourceRelations(orgId, projectId int64, versionId, isDelete int, sourceTypes []int32, resourceIds []int64, isNeedResourceType bool) ([]resourcevo.ResourceRelationVo, errs.SystemErrorInfo)

func GetResourceRelationsByProjectId

func GetResourceRelationsByProjectId(orgId, userId, projectId int64, sourceTypes []int32) ([]resourcevo.ResourceRelationVo, errs.SystemErrorInfo)

func InsertResourceRelation

func InsertResourceRelation(orgId, projectId, issueId int64, userId int64, resourceIds []int64, resourceIdSourceTypes map[int64]int) errs.SystemErrorInfo

func InsertResourceRelationWithColumnId

func InsertResourceRelationWithColumnId(orgId, userId, projectId, issueId int64, resourceIds []int64, sourceType int, columnId string) errs.SystemErrorInfo

func RecoverFolder

func RecoverFolder(orgId, userId, projectId, folderId int64, recycleId int64) (*bo.FolderBo, errs.SystemErrorInfo)

func RecoverLessAttachment

func RecoverLessAttachment(orgId, userId int64, appId int64, recycleId int64, tx sqlbuilder.Tx) errs.SystemErrorInfo

func RecoverLessAttachments

func RecoverLessAttachments(orgId, userId int64, projectId, appId, recycleVersionId int64, sourceChannel string, tx sqlbuilder.Tx) errs.SystemErrorInfo

func RecoverResourceRelation

func RecoverResourceRelation(orgId, userId, projectId int64, resourceIds []int64, sourceType int, tx sqlbuilder.Tx) errs.SystemErrorInfo

func UpdateAttachmentRelation

func UpdateAttachmentRelation(orgId, userId, projectId int64, issueIds, resourceIds []int64, recycleVersion int64,
	columnId string, isDeleteResource bool) errs.SystemErrorInfo

func UpdateFolder

func UpdateFolder(folderId int64, input bo.UpdateFolderBo, tx ...sqlbuilder.Tx) (mysql.Upd, errs.SystemErrorInfo)

func UpdateResourceFolderId

func UpdateResourceFolderId(resourceIds []int64, currentFolderId, targetFolderId, userId, orgId int64, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

func UpdateResourceInfo

func UpdateResourceInfo(resourceId int64, input bo.UpdateResourceInfoBo, tx ...sqlbuilder.Tx) (*po.PpmResResource, errs.SystemErrorInfo)

func UpdateResourceRelationProjectId

func UpdateResourceRelationProjectId(orgId, userId, projectId int64, issueIds []int64, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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