Documentation ¶
Index ¶
- type Comment
- func (c *Comment) Create(userID user.ID, req *apistructs.CommentCreateRequest) (int64, error)
- func (c *Comment) List(ticketID int64, pageNo, pageSize int) (*apistructs.CommentListResponseData, error)
- func (c *Comment) Update(commentID int64, userID user.ID, req *apistructs.CommentUpdateRequestBody) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct {
// contains filtered or unexported fields
}
Comment 工单评论操作封装
func (*Comment) Create ¶
func (c *Comment) Create(userID user.ID, req *apistructs.CommentCreateRequest) (int64, error)
Create 创建工单评论
func (*Comment) List ¶
func (c *Comment) List(ticketID int64, pageNo, pageSize int) (*apistructs.CommentListResponseData, error)
List 工单评论列表
func (*Comment) Update ¶
func (c *Comment) Update(commentID int64, userID user.ID, req *apistructs.CommentUpdateRequestBody) error
Update 更新工单评论
Click to show internal directories.
Click to hide internal directories.