Documentation ¶
Index ¶
- Constants
- type AttachmentService
- func (a *AttachmentService) DownloadAttachment(ctx context.Context, req *DownloadAttachmentReq, ...) (*DownloadAttachmentResp, error)
- func (a *AttachmentService) SpecialUploadAttachment(ctx context.Context, req *SpecialUploadAttachmentReq, ...) (*SpecialUploadAttachmentResp, error)
- func (a *AttachmentService) UploadAttachment(ctx context.Context, req *UploadAttachmentReq, ...) (*UploadAttachmentResp, error)
- type DownloadAttachmentReq
- type DownloadAttachmentReqBody
- type DownloadAttachmentReqBuilder
- func (builder *DownloadAttachmentReqBuilder) Build() *DownloadAttachmentReq
- func (builder *DownloadAttachmentReqBuilder) ProjectKey(projectKey string) *DownloadAttachmentReqBuilder
- func (builder *DownloadAttachmentReqBuilder) UUID(uuid string) *DownloadAttachmentReqBuilder
- func (builder *DownloadAttachmentReqBuilder) WorkItemID(workItemID int64) *DownloadAttachmentReqBuilder
- func (builder *DownloadAttachmentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *DownloadAttachmentReqBuilder
- type DownloadAttachmentResp
- type SpecialUploadAttachmentReq
- type SpecialUploadAttachmentReqBuilder
- func (builder *SpecialUploadAttachmentReqBuilder) Build() *SpecialUploadAttachmentReq
- func (builder *SpecialUploadAttachmentReqBuilder) File(file io.Reader) *SpecialUploadAttachmentReqBuilder
- func (builder *SpecialUploadAttachmentReqBuilder) FileMimeType(mimeType string) *SpecialUploadAttachmentReqBuilder
- func (builder *SpecialUploadAttachmentReqBuilder) FileWithFileName(fileName string, file io.Reader) *SpecialUploadAttachmentReqBuilder
- func (builder *SpecialUploadAttachmentReqBuilder) ProjectKey(projectKey string) *SpecialUploadAttachmentReqBuilder
- type SpecialUploadAttachmentResp
- type UploadAttachmentReq
- type UploadAttachmentReqBuilder
- func (builder *UploadAttachmentReqBuilder) Build() *UploadAttachmentReq
- func (builder *UploadAttachmentReqBuilder) FieldAlias(fieldAlias string) *UploadAttachmentReqBuilder
- func (builder *UploadAttachmentReqBuilder) FieldKey(fieldKey string) *UploadAttachmentReqBuilder
- func (builder *UploadAttachmentReqBuilder) File(file io.Reader) *UploadAttachmentReqBuilder
- func (builder *UploadAttachmentReqBuilder) FileMimeType(mimeType string) *UploadAttachmentReqBuilder
- func (builder *UploadAttachmentReqBuilder) FileWithFileName(fileName string, file io.Reader) *UploadAttachmentReqBuilder
- func (builder *UploadAttachmentReqBuilder) ProjectKey(projectKey string) *UploadAttachmentReqBuilder
- func (builder *UploadAttachmentReqBuilder) WorkItemID(workItemID int64) *UploadAttachmentReqBuilder
- func (builder *UploadAttachmentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *UploadAttachmentReqBuilder
- type UploadAttachmentResp
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 (a *AttachmentService) DownloadAttachment(ctx context.Context, req *DownloadAttachmentReq, options ...core.RequestOptionFunc) (*DownloadAttachmentResp, error)
下载附件
func (*AttachmentService) SpecialUploadAttachment ¶
func (a *AttachmentService) SpecialUploadAttachment(ctx context.Context, req *SpecialUploadAttachmentReq, options ...core.RequestOptionFunc) (*SpecialUploadAttachmentResp, error)
附件上传
func (*AttachmentService) UploadAttachment ¶
func (a *AttachmentService) UploadAttachment(ctx context.Context, req *UploadAttachmentReq, options ...core.RequestOptionFunc) (*UploadAttachmentResp, error)
添加附件
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 (builder *DownloadAttachmentReqBuilder) Build() *DownloadAttachmentReq
func (*DownloadAttachmentReqBuilder) ProjectKey ¶
func (builder *DownloadAttachmentReqBuilder) ProjectKey(projectKey string) *DownloadAttachmentReqBuilder
func (*DownloadAttachmentReqBuilder) UUID ¶
func (builder *DownloadAttachmentReqBuilder) UUID(uuid string) *DownloadAttachmentReqBuilder
func (*DownloadAttachmentReqBuilder) WorkItemID ¶
func (builder *DownloadAttachmentReqBuilder) WorkItemID(workItemID int64) *DownloadAttachmentReqBuilder
func (*DownloadAttachmentReqBuilder) WorkItemTypeKey ¶
func (builder *DownloadAttachmentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *DownloadAttachmentReqBuilder
type DownloadAttachmentResp ¶
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 (builder *SpecialUploadAttachmentReqBuilder) Build() *SpecialUploadAttachmentReq
func (*SpecialUploadAttachmentReqBuilder) File ¶
func (builder *SpecialUploadAttachmentReqBuilder) File(file io.Reader) *SpecialUploadAttachmentReqBuilder
func (*SpecialUploadAttachmentReqBuilder) FileMimeType ¶ added in v1.0.5
func (builder *SpecialUploadAttachmentReqBuilder) FileMimeType(mimeType string) *SpecialUploadAttachmentReqBuilder
func (*SpecialUploadAttachmentReqBuilder) FileWithFileName ¶ added in v1.0.1
func (builder *SpecialUploadAttachmentReqBuilder) FileWithFileName(fileName string, file io.Reader) *SpecialUploadAttachmentReqBuilder
func (*SpecialUploadAttachmentReqBuilder) ProjectKey ¶
func (builder *SpecialUploadAttachmentReqBuilder) ProjectKey(projectKey string) *SpecialUploadAttachmentReqBuilder
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 (builder *UploadAttachmentReqBuilder) Build() *UploadAttachmentReq
func (*UploadAttachmentReqBuilder) FieldAlias ¶
func (builder *UploadAttachmentReqBuilder) FieldAlias(fieldAlias string) *UploadAttachmentReqBuilder
func (*UploadAttachmentReqBuilder) FieldKey ¶
func (builder *UploadAttachmentReqBuilder) FieldKey(fieldKey string) *UploadAttachmentReqBuilder
func (*UploadAttachmentReqBuilder) File ¶
func (builder *UploadAttachmentReqBuilder) File(file io.Reader) *UploadAttachmentReqBuilder
func (*UploadAttachmentReqBuilder) FileMimeType ¶ added in v1.0.2
func (builder *UploadAttachmentReqBuilder) FileMimeType(mimeType string) *UploadAttachmentReqBuilder
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
Click to show internal directories.
Click to hide internal directories.