Documentation ¶
Overview ¶
service层, 负责处理业务逻辑
Index ¶
- func BuildCommentPbModel(comment *commentModels.Comment) *commentPb.Comment
- func CloseMQConn()
- type CommentServiceImpl
- func (c CommentServiceImpl) ActionComment(ctx context.Context, request *commentPb.ActionCommentRequest) (resp *commentPb.ActionCommentResponse, err error)
- func (c CommentServiceImpl) CountComment(ctx context.Context, request *commentPb.CountCommentRequest) (resp *commentPb.CountCommentResponse, err error)
- func (c CommentServiceImpl) ListComment(ctx context.Context, request *commentPb.ListCommentRequest) (resp *commentPb.ListCommentResponse, err error)
- func (c CommentServiceImpl) New()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCommentPbModel ¶
func BuildCommentPbModel(comment *commentModels.Comment) *commentPb.Comment
func CloseMQConn ¶
func CloseMQConn()
Types ¶
type CommentServiceImpl ¶
type CommentServiceImpl struct {
commentPb.CommentServiceServer
}
func (CommentServiceImpl) ActionComment ¶
func (c CommentServiceImpl) ActionComment(ctx context.Context, request *commentPb.ActionCommentRequest) (resp *commentPb.ActionCommentResponse, err error)
func (CommentServiceImpl) CountComment ¶
func (c CommentServiceImpl) CountComment(ctx context.Context, request *commentPb.CountCommentRequest) (resp *commentPb.CountCommentResponse, err error)
func (CommentServiceImpl) ListComment ¶
func (c CommentServiceImpl) ListComment(ctx context.Context, request *commentPb.ListCommentRequest) (resp *commentPb.ListCommentResponse, err error)
func (CommentServiceImpl) New ¶
func (c CommentServiceImpl) New()
Click to show internal directories.
Click to hide internal directories.