Documentation
¶
Index ¶
- Constants
- type CommentForOpenAPI
- type CommentService
- func (a *CommentService) CreateComment(ctx context.Context, req *CreateCommentReq, options ...core.RequestOptionFunc) (*CreateCommentResp, error)
- func (a *CommentService) DeleteComment(ctx context.Context, req *DeleteCommentReq, options ...core.RequestOptionFunc) (*DeleteCommentResp, error)
- func (a *CommentService) ListComments(ctx context.Context, req *ListCommentsReq, options ...core.RequestOptionFunc) (*ListCommentsResp, error)
- func (a *CommentService) UpdateComment(ctx context.Context, req *UpdateCommentReq, options ...core.RequestOptionFunc) (*UpdateCommentResp, error)
- type CreateCommentReq
- type CreateCommentReqBody
- type CreateCommentReqBuilder
- func (builder *CreateCommentReqBuilder) Build() *CreateCommentReq
- func (builder *CreateCommentReqBuilder) Content(content string) *CreateCommentReqBuilder
- func (builder *CreateCommentReqBuilder) ProjectKey(projectKey string) *CreateCommentReqBuilder
- func (builder *CreateCommentReqBuilder) RichText(richText interface{}) *CreateCommentReqBuilder
- func (builder *CreateCommentReqBuilder) WorkItemID(workItemID int64) *CreateCommentReqBuilder
- func (builder *CreateCommentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *CreateCommentReqBuilder
- type CreateCommentResp
- type DeleteCommentReq
- type DeleteCommentReqBuilder
- func (builder *DeleteCommentReqBuilder) Build() *DeleteCommentReq
- func (builder *DeleteCommentReqBuilder) CommentID(commentID int64) *DeleteCommentReqBuilder
- func (builder *DeleteCommentReqBuilder) ProjectKey(projectKey string) *DeleteCommentReqBuilder
- func (builder *DeleteCommentReqBuilder) WorkItemID(workItemID int64) *DeleteCommentReqBuilder
- func (builder *DeleteCommentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *DeleteCommentReqBuilder
- type DeleteCommentResp
- type ListCommentsReq
- type ListCommentsReqBuilder
- func (builder *ListCommentsReqBuilder) Build() *ListCommentsReq
- func (builder *ListCommentsReqBuilder) PageNum(pageNum int64) *ListCommentsReqBuilder
- func (builder *ListCommentsReqBuilder) PageSize(pageSize int64) *ListCommentsReqBuilder
- func (builder *ListCommentsReqBuilder) ProjectKey(projectKey string) *ListCommentsReqBuilder
- func (builder *ListCommentsReqBuilder) WorkItemID(workItemID int64) *ListCommentsReqBuilder
- func (builder *ListCommentsReqBuilder) WorkItemTypeKey(workItemTypeKey string) *ListCommentsReqBuilder
- type ListCommentsResp
- type Pagination
- type UpdateCommentReq
- type UpdateCommentReqBody
- type UpdateCommentReqBuilder
- func (builder *UpdateCommentReqBuilder) Build() *UpdateCommentReq
- func (builder *UpdateCommentReqBuilder) CommentID(commentID int64) *UpdateCommentReqBuilder
- func (builder *UpdateCommentReqBuilder) Content(content string) *UpdateCommentReqBuilder
- func (builder *UpdateCommentReqBuilder) ProjectKey(projectKey string) *UpdateCommentReqBuilder
- func (builder *UpdateCommentReqBuilder) RichText(richText interface{}) *UpdateCommentReqBuilder
- func (builder *UpdateCommentReqBuilder) WorkItemID(workItemID int64) *UpdateCommentReqBuilder
- func (builder *UpdateCommentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *UpdateCommentReqBuilder
- type UpdateCommentResp
Constants ¶
View Source
const APIPath_CreateComment = "/open_api/:project_key/work_item/:work_item_type_key/:work_item_id/comment/create"
View Source
const APIPath_DeleteComment = "/open_api/:project_key/work_item/:work_item_type_key/:work_item_id/comment/:comment_id"
View Source
const APIPath_ListComments = "/open_api/:project_key/work_item/:work_item_type_key/:work_item_id/comments"
View Source
const APIPath_UpdateComment = "/open_api/:project_key/work_item/:work_item_type_key/:work_item_id/comment/:comment_id"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentForOpenAPI ¶
type CommentForOpenAPI struct { ID *int64 `json:"id,omitempty"` WorkItemID *int64 `json:"work_item_id,omitempty"` WorkItemTypeKey *string `json:"work_item_type_key,omitempty"` CreatedAt *int64 `json:"created_at,omitempty"` Operator *string `json:"operator,omitempty"` Content *string `json:"content,omitempty"` }
type CommentService ¶
type CommentService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(config *core.Config) *CommentService
func (*CommentService) CreateComment ¶
func (a *CommentService) CreateComment(ctx context.Context, req *CreateCommentReq, options ...core.RequestOptionFunc) (*CreateCommentResp, error)
- comment openapi接口
@name:APICreateCommentForOpen
- @desc:OpenAPI,创建评论接口
func (*CommentService) DeleteComment ¶
func (a *CommentService) DeleteComment(ctx context.Context, req *DeleteCommentReq, options ...core.RequestOptionFunc) (*DeleteCommentResp, error)
* @name:APIDeleteCommentForOpen * @desc:OpenAPI,删除评论接口
func (*CommentService) ListComments ¶
func (a *CommentService) ListComments(ctx context.Context, req *ListCommentsReq, options ...core.RequestOptionFunc) (*ListCommentsResp, error)
* @name:APIListCommentsForOpen * @desc:OpenAPI,分页查询评论接口
func (*CommentService) UpdateComment ¶
func (a *CommentService) UpdateComment(ctx context.Context, req *UpdateCommentReq, options ...core.RequestOptionFunc) (*UpdateCommentResp, error)
* @name:APIUpdateCommentForOpen * @desc:OpenAPI,更新评论接口
type CreateCommentReq ¶
type CreateCommentReq struct {
// contains filtered or unexported fields
}
type CreateCommentReqBody ¶
type CreateCommentReqBody struct { Content *string `json:"content,omitempty"` RichText interface{} `json:"rich_text,omitempty"` }
type CreateCommentReqBuilder ¶
type CreateCommentReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateCommentReqBuilder ¶
func NewCreateCommentReqBuilder() *CreateCommentReqBuilder
func (*CreateCommentReqBuilder) Build ¶
func (builder *CreateCommentReqBuilder) Build() *CreateCommentReq
func (*CreateCommentReqBuilder) Content ¶
func (builder *CreateCommentReqBuilder) Content(content string) *CreateCommentReqBuilder
func (*CreateCommentReqBuilder) ProjectKey ¶
func (builder *CreateCommentReqBuilder) ProjectKey(projectKey string) *CreateCommentReqBuilder
func (*CreateCommentReqBuilder) RichText ¶
func (builder *CreateCommentReqBuilder) RichText(richText interface{}) *CreateCommentReqBuilder
func (*CreateCommentReqBuilder) WorkItemID ¶
func (builder *CreateCommentReqBuilder) WorkItemID(workItemID int64) *CreateCommentReqBuilder
func (*CreateCommentReqBuilder) WorkItemTypeKey ¶
func (builder *CreateCommentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *CreateCommentReqBuilder
type CreateCommentResp ¶
type DeleteCommentReq ¶
type DeleteCommentReq struct {
// contains filtered or unexported fields
}
type DeleteCommentReqBuilder ¶
type DeleteCommentReqBuilder struct {
// contains filtered or unexported fields
}
func NewDeleteCommentReqBuilder ¶
func NewDeleteCommentReqBuilder() *DeleteCommentReqBuilder
func (*DeleteCommentReqBuilder) Build ¶
func (builder *DeleteCommentReqBuilder) Build() *DeleteCommentReq
func (*DeleteCommentReqBuilder) CommentID ¶
func (builder *DeleteCommentReqBuilder) CommentID(commentID int64) *DeleteCommentReqBuilder
func (*DeleteCommentReqBuilder) ProjectKey ¶
func (builder *DeleteCommentReqBuilder) ProjectKey(projectKey string) *DeleteCommentReqBuilder
func (*DeleteCommentReqBuilder) WorkItemID ¶
func (builder *DeleteCommentReqBuilder) WorkItemID(workItemID int64) *DeleteCommentReqBuilder
func (*DeleteCommentReqBuilder) WorkItemTypeKey ¶
func (builder *DeleteCommentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *DeleteCommentReqBuilder
type ListCommentsReq ¶
type ListCommentsReq struct {
// contains filtered or unexported fields
}
type ListCommentsReqBuilder ¶
type ListCommentsReqBuilder struct {
// contains filtered or unexported fields
}
func NewListCommentsReqBuilder ¶
func NewListCommentsReqBuilder() *ListCommentsReqBuilder
func (*ListCommentsReqBuilder) Build ¶
func (builder *ListCommentsReqBuilder) Build() *ListCommentsReq
func (*ListCommentsReqBuilder) PageNum ¶
func (builder *ListCommentsReqBuilder) PageNum(pageNum int64) *ListCommentsReqBuilder
func (*ListCommentsReqBuilder) PageSize ¶
func (builder *ListCommentsReqBuilder) PageSize(pageSize int64) *ListCommentsReqBuilder
func (*ListCommentsReqBuilder) ProjectKey ¶
func (builder *ListCommentsReqBuilder) ProjectKey(projectKey string) *ListCommentsReqBuilder
func (*ListCommentsReqBuilder) WorkItemID ¶
func (builder *ListCommentsReqBuilder) WorkItemID(workItemID int64) *ListCommentsReqBuilder
func (*ListCommentsReqBuilder) WorkItemTypeKey ¶
func (builder *ListCommentsReqBuilder) WorkItemTypeKey(workItemTypeKey string) *ListCommentsReqBuilder
type ListCommentsResp ¶
type ListCommentsResp struct { *core.APIResp `json:"-"` core.CodeError Data []CommentForOpenAPI `json:"data"` Pagination *Pagination `json:"pagination"` }
type Pagination ¶
type UpdateCommentReq ¶
type UpdateCommentReq struct {
// contains filtered or unexported fields
}
type UpdateCommentReqBody ¶
type UpdateCommentReqBody struct { Content *string `json:"content,omitempty"` RichText interface{} `json:"rich_text,omitempty"` }
type UpdateCommentReqBuilder ¶
type UpdateCommentReqBuilder struct {
// contains filtered or unexported fields
}
func NewUpdateCommentReqBuilder ¶
func NewUpdateCommentReqBuilder() *UpdateCommentReqBuilder
func (*UpdateCommentReqBuilder) Build ¶
func (builder *UpdateCommentReqBuilder) Build() *UpdateCommentReq
func (*UpdateCommentReqBuilder) CommentID ¶
func (builder *UpdateCommentReqBuilder) CommentID(commentID int64) *UpdateCommentReqBuilder
func (*UpdateCommentReqBuilder) Content ¶
func (builder *UpdateCommentReqBuilder) Content(content string) *UpdateCommentReqBuilder
func (*UpdateCommentReqBuilder) ProjectKey ¶
func (builder *UpdateCommentReqBuilder) ProjectKey(projectKey string) *UpdateCommentReqBuilder
func (*UpdateCommentReqBuilder) RichText ¶
func (builder *UpdateCommentReqBuilder) RichText(richText interface{}) *UpdateCommentReqBuilder
func (*UpdateCommentReqBuilder) WorkItemID ¶
func (builder *UpdateCommentReqBuilder) WorkItemID(workItemID int64) *UpdateCommentReqBuilder
func (*UpdateCommentReqBuilder) WorkItemTypeKey ¶
func (builder *UpdateCommentReqBuilder) WorkItemTypeKey(workItemTypeKey string) *UpdateCommentReqBuilder
Click to show internal directories.
Click to hide internal directories.