Documentation ¶
Index ¶
- type CommentService
- func (c *CommentService) AddNewCmt(req *comment.CommentActionRequest) (error, string)
- func (c *CommentService) DelCmt(req *comment.CommentDelActionRequest) error
- func (c *CommentService) GetSubCmtList(req *comment.CommentListRequest) (err error, cmts []*comment.Comment)
- func (c *CommentService) GetTopCmtList(req *comment.CommentListRequest) (err error, comments []*comment.Comment)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentService ¶
type CommentService struct {
// contains filtered or unexported fields
}
func NewCommentService ¶
func NewCommentService(ctx context.Context, c *app.RequestContext) *CommentService
NewCommentService create comment service
func (*CommentService) AddNewCmt ¶
func (c *CommentService) AddNewCmt(req *comment.CommentActionRequest) (error, string)
func (*CommentService) DelCmt ¶
func (c *CommentService) DelCmt(req *comment.CommentDelActionRequest) error
func (*CommentService) GetSubCmtList ¶
func (c *CommentService) GetSubCmtList(req *comment.CommentListRequest) (err error, cmts []*comment.Comment)
func (*CommentService) GetTopCmtList ¶
func (c *CommentService) GetTopCmtList(req *comment.CommentListRequest) (err error, comments []*comment.Comment)
Click to show internal directories.
Click to hide internal directories.