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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFsResourceBatch

func AddFsResourceBatch(orgId, userId, projectId, issueId, folderId int64, data []*vo.AddIssueAttachmentFsData) ([]int64, errs.SystemErrorInfo)

添加飞书云文档兼容 在文件管理模块添加、附件字段添加

func AddResourceRelations

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

func CacheResourceSize

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

func CompleteDeleteFolder

func CompleteDeleteFolder(orgId, userId int64, projectId, folderId int64, recycleId int64) errs.SystemErrorInfo

func CompleteDeleteResource

func CompleteDeleteResource(orgId, userId int64, resourceIds []int64) errs.SystemErrorInfo

func CreateFolder

func CreateFolder(input bo.CreateFolderBo) (*vo.Void, errs.SystemErrorInfo)

func CreateResource

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

func CreateResourceRelation

func CreateResourceRelation(orgId, userId int64, projectId int64, issueId int64, resourceIds []int64) ([]int64, errs.SystemErrorInfo)

func DeleteResource

目前项目 文件管理中删除文件会使用到

func DeleteResourceRelation

func DeleteResourceRelation(orgId, userId, projectId int64, issueIds []int64, sourceTypes []int, recycleVersionId int64) errs.SystemErrorInfo

func DingDocumentList

func DingDocumentList(orgId int64, userId int64, page int, size int) (*resourcevo.DingDocumentResp, errs.SystemErrorInfo)

获取钉钉 最近文档列表信息

func DingFileList

获取钉钉 云盘文件列表(通过云盘空间名称和类型获取)

func DingFileListById

DingFileListById 只是通过spaceId和dirId获取层级列表信息

func DingSpaceList

获取钉钉空间列表信息

func FsDocumentList

func FsDocumentList(orgId int64, userId int64, page int, size int, searchKey string) (*vo.FsDocumentListResp, errs.SystemErrorInfo)

func GetFolder

func GetFolder(input bo.GetFolderBo) (*vo.FolderList, errs.SystemErrorInfo)

func GetFolderInfoBasic

func GetFolderInfoBasic(orgId int64, folderIds []int64) ([]vo.Folder, 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 GetResource

func GetResource(input bo.GetResourceBo) (*vo.ResourceList, errs.SystemErrorInfo)

func GetResourceById

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

获取资源信息

func GetResourceInfo

func GetResourceInfo(input bo.GetResourceInfoBo) (*vo.Resource, errs.SystemErrorInfo)

func GetResourceRelationList

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

func GetResourceRelationsByProjectId

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

func RecoverFolder

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

func RecoverResource

func RecoverResource(orgId, appId, userId, projectId, relationId int64, recycleVersionId int64, issueIds []int64, sourceChannel string) (*bo.ResourceBo, errs.SystemErrorInfo)

func UpdateAttachmentRelation

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

资源关联关系处理,存入回收站的versionId

func UpdateResourceRelationProjectId

func UpdateResourceRelationProjectId(orgId, userId, projectId int64, issueIds []int64) 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