attachment

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 添加附件接口path
	ApiPathUploadAttachment = "/open_api/:project_key/work_item/:work_item_type_key/:work_item_id/file/upload"

	// 下载附件接口path
	ApiPathDownloadAttachment = "/open_api/:project_key/work_item/:work_item_type_key/:work_item_id/file/download"

	// 附件上传接口path
	ApiPathSpecialUploadAttachment = "/open_api/:project_key/file/upload"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentService

type AttachmentService struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(config *core.Config) *AttachmentService

func (*AttachmentService) DownloadAttachment

下载附件

func (*AttachmentService) SpecialUploadAttachment

附件上传

func (*AttachmentService) UploadAttachment

添加附件

type DownloadAttachmentReq

type DownloadAttachmentReq struct {
	// contains filtered or unexported fields
}

type DownloadAttachmentReqBody

type DownloadAttachmentReqBody struct {
	UUID string `json:"uuid"`
}

type DownloadAttachmentReqBuilder

type DownloadAttachmentReqBuilder struct {
	// contains filtered or unexported fields
}

func NewDownloadAttachmentReqBuilder

func NewDownloadAttachmentReqBuilder() *DownloadAttachmentReqBuilder

func (*DownloadAttachmentReqBuilder) Build

func (*DownloadAttachmentReqBuilder) ProjectKey

func (builder *DownloadAttachmentReqBuilder) ProjectKey(projectKey string) *DownloadAttachmentReqBuilder

func (*DownloadAttachmentReqBuilder) UUID

func (*DownloadAttachmentReqBuilder) WorkItemID

func (builder *DownloadAttachmentReqBuilder) WorkItemID(workItemID int64) *DownloadAttachmentReqBuilder

func (*DownloadAttachmentReqBuilder) WorkItemTypeKey

func (builder *DownloadAttachmentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *DownloadAttachmentReqBuilder

type DownloadAttachmentResp

type DownloadAttachmentResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	File     io.Reader `json:"-"`
	FileName string    `json:"-"`
}

type SpecialUploadAttachmentReq

type SpecialUploadAttachmentReq struct {
	// contains filtered or unexported fields
}

type SpecialUploadAttachmentReqBuilder

type SpecialUploadAttachmentReqBuilder struct {
	// contains filtered or unexported fields
}

func NewSpecialUploadAttachmentReqBuilder

func NewSpecialUploadAttachmentReqBuilder() *SpecialUploadAttachmentReqBuilder

func (*SpecialUploadAttachmentReqBuilder) Build

func (*SpecialUploadAttachmentReqBuilder) File

func (*SpecialUploadAttachmentReqBuilder) FileWithFileName added in v1.0.1

func (builder *SpecialUploadAttachmentReqBuilder) FileWithFileName(fileName string, file io.Reader) *SpecialUploadAttachmentReqBuilder

func (*SpecialUploadAttachmentReqBuilder) ProjectKey

type SpecialUploadAttachmentResp

type SpecialUploadAttachmentResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	Data []string `json:"data"`
}

type UploadAttachmentReq

type UploadAttachmentReq struct {
	// contains filtered or unexported fields
}

添加附件接口参数

type UploadAttachmentReqBuilder

type UploadAttachmentReqBuilder struct {
	// contains filtered or unexported fields
}

添加附件接口参数构造器

func NewUploadAttachmentReqBuilder

func NewUploadAttachmentReqBuilder() *UploadAttachmentReqBuilder

func (*UploadAttachmentReqBuilder) Build

func (*UploadAttachmentReqBuilder) FieldAlias

func (builder *UploadAttachmentReqBuilder) FieldAlias(fieldAlias string) *UploadAttachmentReqBuilder

func (*UploadAttachmentReqBuilder) FieldKey

func (builder *UploadAttachmentReqBuilder) FieldKey(fieldKey string) *UploadAttachmentReqBuilder

func (*UploadAttachmentReqBuilder) File

func (*UploadAttachmentReqBuilder) FileWithFileName added in v1.0.1

func (builder *UploadAttachmentReqBuilder) FileWithFileName(fileName string, file io.Reader) *UploadAttachmentReqBuilder

func (*UploadAttachmentReqBuilder) ProjectKey

func (builder *UploadAttachmentReqBuilder) ProjectKey(projectKey string) *UploadAttachmentReqBuilder

func (*UploadAttachmentReqBuilder) WorkItemID

func (builder *UploadAttachmentReqBuilder) WorkItemID(workItemID int64) *UploadAttachmentReqBuilder

func (*UploadAttachmentReqBuilder) WorkItemTypeKey

func (builder *UploadAttachmentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *UploadAttachmentReqBuilder

type UploadAttachmentResp

type UploadAttachmentResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
}

添加附件接口响应

Jump to

Keyboard shortcuts

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