comment

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 New

func New(options ...Option) *Comment

New 新建 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 更新工单评论

type Option

type Option func(*Comment)

Option 定义 Comment 配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 Comment bundle选项

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 Comment 数据库选项

Jump to

Keyboard shortcuts

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