Documentation ¶
Index ¶
- func CacheResourceSize(orgId int64) (int64, errs.SystemErrorInfo)
- func CheckFolderIds(folderIds []int64, projectId, orgId int64) errs.SystemErrorInfo
- func CheckRelation(resourceIds []int64, folderId int64, orgId int64) errs.SystemErrorInfo
- func CheckResourceFolderIsDelete(orgId, projectId, resourceId int64, versionId int) bool
- func CheckResourceIds(resourceIds []int64, projectId, orgId int64) errs.SystemErrorInfo
- func ClearCacheResourceSize(orgId int64) errs.SystemErrorInfo
- func CreateFolder(input bo.CreateFolderBo) (int64, errs.SystemErrorInfo)
- func CreateResource(createResourceBo bo.CreateResourceBo, tx ...sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
- func DeleteFolder(folderIds []int64, userId int64, recycleVerisonId int64, tx ...sqlbuilder.Tx) errs.SystemErrorInfo
- func DeleteMidTable(folderIds []int64, orgId, userId int64, recycleVersionId int64, ...) ([]int64, errs.SystemErrorInfo)
- func DeleteResource(resourceIds []int64, folderId *int64, orgId, appId, userId int64, ...) errs.SystemErrorInfo
- func DeleteResourceRelation(orgId, userId, projectId int64, issueIds []int64, resourceIds []int64, ...) errs.SystemErrorInfo
- func DingFileListById(orgId int64, outOrgId, outUserId, unionId string, spaceId string, dirId string, ...) ([]*resourcevo.DingFileListData, errs.SystemErrorInfo)
- func GetAllRelateFolderIds(orgId, project int64, folderIds []int64, recycleId int64) ([]int64, errs.SystemErrorInfo)
- func GetBaseUserInfoMap(orgId int64, userIds []int64) (map[interface{}]interface{}, errs.SystemErrorInfo)
- func GetDingSpaceList(outUserId, unionId string, outOrgId string, nextToken string, size int) ([]*resourcevo.SpaceInfo, errs.SystemErrorInfo)
- func GetFolder(parentId *int64, projectId int64, page bo.PageBo) (*[]po.PpmResFolder, uint64, errs.SystemErrorInfo)
- func GetFolderById(folderIds []int64) ([]bo.FolderBo, errs.SystemErrorInfo)
- func GetFolderTree(orgId, projectId int64, recycleId int64) (map[int64]*bo.FolderTreeBo, errs.SystemErrorInfo)
- func GetIdByPath(orgId int64, resourcePath string, resourceType int) (int64, errs.SystemErrorInfo)
- func GetIssueIdsByResource(orgId, projectId int64, resourceIds []int64) ([]resourcevo.GetIssueIdsByResourceIdsResp, errs.SystemErrorInfo)
- func GetOrgFunctionInfoMap(functions []orgvo.FunctionLimitObj) map[string]orgvo.FunctionLimitObj
- func GetPayFunctionLimitResourceNum(orgId int64, functionCode string) (int, errs.SystemErrorInfo)
- func GetRelationIssueIdsAndResourceIds(cond db.Cond, tx sqlbuilder.Tx) ([]int64, []int64, errs.SystemErrorInfo)
- func GetResourceBoList(page uint, size uint, input resourcevo.GetResourceBoListCond) (*[]bo.ResourceBo, int64, errs.SystemErrorInfo)
- func GetResourceBoListByPage(cond db.Cond, union *db.Union, pageBo bo.PageBo) (*[]bo.ResourceBo, int64, errs.SystemErrorInfo)
- func GetResourceByIds(resourceIds []int64) ([]bo.ResourceBo, errs.SystemErrorInfo)
- func GetResourceIdsByFolderId(folderId, orgId int64) (*[]int64, errs.SystemErrorInfo)
- func GetResourceInfo(orgId, resourceId int64) (*bo.ResourceBo, errs.SystemErrorInfo)
- func GetResourceRelations(orgId, projectId int64, versionId, isDelete int, sourceTypes []int32, ...) ([]resourcevo.ResourceRelationVo, errs.SystemErrorInfo)
- func GetResourceRelationsByProjectId(orgId, userId, projectId int64, sourceTypes []int32) ([]resourcevo.ResourceRelationVo, errs.SystemErrorInfo)
- func InsertResourceRelation(orgId, projectId, issueId int64, userId int64, resourceIds []int64, ...) errs.SystemErrorInfo
- func InsertResourceRelationWithColumnId(orgId, userId, projectId, issueId int64, resourceIds []int64, sourceType int, ...) errs.SystemErrorInfo
- func RecoverFolder(orgId, userId, projectId, folderId int64, recycleId int64) (*bo.FolderBo, errs.SystemErrorInfo)
- func RecoverLessAttachment(orgId, userId int64, appId int64, recycleId int64, tx sqlbuilder.Tx) errs.SystemErrorInfo
- func RecoverLessAttachments(orgId, userId int64, projectId, appId, recycleVersionId int64, ...) errs.SystemErrorInfo
- func RecoverResourceRelation(orgId, userId, projectId int64, resourceIds []int64, sourceType int, ...) errs.SystemErrorInfo
- func UpdateAttachmentRelation(orgId, userId, projectId int64, issueIds, resourceIds []int64, ...) errs.SystemErrorInfo
- func UpdateFolder(folderId int64, input bo.UpdateFolderBo, tx ...sqlbuilder.Tx) (mysql.Upd, errs.SystemErrorInfo)
- func UpdateResourceFolderId(resourceIds []int64, currentFolderId, targetFolderId, userId, orgId int64, ...) errs.SystemErrorInfo
- func UpdateResourceInfo(resourceId int64, input bo.UpdateResourceInfoBo, tx ...sqlbuilder.Tx) (*po.PpmResResource, errs.SystemErrorInfo)
- func UpdateResourceRelationProjectId(orgId, userId, projectId int64, issueIds []int64, tx ...sqlbuilder.Tx) errs.SystemErrorInfo
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 ¶
通过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 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 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 RecoverFolder ¶
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 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.
Click to show internal directories.
Click to hide internal directories.