(wsSlug, itemSlug string, input models.CommentCreate)
| 382 | } |
| 383 | |
| 384 | func (c *Client) CreateComment(wsSlug, itemSlug string, input models.CommentCreate) (*models.Comment, error) { |
| 385 | var result models.Comment |
| 386 | err := c.post("/workspaces/"+wsSlug+"/items/"+itemSlug+"/comments", input, &result) |
| 387 | return &result, wrapItemNotFound(err, itemSlug, wsSlug) |
| 388 | } |
| 389 | |
| 390 | func (c *Client) DeleteComment(wsSlug, commentID string) error { |
| 391 | return c.delete("/workspaces/" + wsSlug + "/comments/" + commentID) |