Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountCommentByParentLogic ¶ added in v1.0.3
func NewCountCommentByParentLogic ¶ added in v1.0.3
func NewCountCommentByParentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CountCommentByParentLogic
func (*CountCommentByParentLogic) CountCommentByParent ¶ added in v1.0.3
func (l *CountCommentByParentLogic) CountCommentByParent(in *pb.CountCommentByParentRequest) (*pb.CountCommentByParentResponse, error)
根据 parentId 统计
type CreateCommentLogic ¶
func NewCreateCommentLogic ¶
func NewCreateCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateCommentLogic
func (*CreateCommentLogic) CreateComment ¶
func (l *CreateCommentLogic) CreateComment(in *pb.CreateCommentRequest) (*pb.CreateCommentResponse, error)
创建
type DeleteCommentLogic ¶
func NewDeleteCommentLogic ¶
func NewDeleteCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteCommentLogic
func (*DeleteCommentLogic) DeleteComment ¶
func (l *DeleteCommentLogic) DeleteComment(in *pb.DeleteCommentByIdRequest) (*pb.DeleteCommentByIdResponse, error)
删除
type ListCommentByAuthorIdAndTypeLogic ¶
type ListCommentByAuthorIdAndTypeLogic struct { logx.Logger // contains filtered or unexported fields }
func NewListCommentByAuthorIdAndTypeLogic ¶
func NewListCommentByAuthorIdAndTypeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListCommentByAuthorIdAndTypeLogic
func (*ListCommentByAuthorIdAndTypeLogic) ListCommentByAuthorIdAndType ¶
func (l *ListCommentByAuthorIdAndTypeLogic) ListCommentByAuthorIdAndType(in *pb.ListCommentByAuthorIdAndTypeRequest) (*pb.ListCommentByAuthorIdAndTypeResponse, error)
根据 authorId & type 查找
type ListCommentByParentLogic ¶
func NewListCommentByParentLogic ¶
func NewListCommentByParentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListCommentByParentLogic
func (*ListCommentByParentLogic) ListCommentByParent ¶
func (l *ListCommentByParentLogic) ListCommentByParent(in *pb.ListCommentByParentRequest) (*pb.ListCommentByParentResponse, error)
根据 parentId 查找
type ListCommentByReplyToAndTypeLogic ¶
type ListCommentByReplyToAndTypeLogic struct { logx.Logger // contains filtered or unexported fields }
func NewListCommentByReplyToAndTypeLogic ¶
func NewListCommentByReplyToAndTypeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListCommentByReplyToAndTypeLogic
func (*ListCommentByReplyToAndTypeLogic) ListCommentByReplyToAndType ¶
func (l *ListCommentByReplyToAndTypeLogic) ListCommentByReplyToAndType(in *pb.ListCommentByReplyToAndTypeRequest) (*pb.ListCommentByReplyToAndTypeResponse, error)
根据 replyTo & type 查找
type RetrieveCommentByIdLogic ¶
func NewRetrieveCommentByIdLogic ¶
func NewRetrieveCommentByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RetrieveCommentByIdLogic
func (*RetrieveCommentByIdLogic) RetrieveCommentById ¶
func (l *RetrieveCommentByIdLogic) RetrieveCommentById(in *pb.RetrieveCommentByIdRequest) (*pb.RetrieveCommentByIdResponse, error)
根据 id 查找
type UpdateCommentLogic ¶
func NewUpdateCommentLogic ¶
func NewUpdateCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateCommentLogic
func (*UpdateCommentLogic) UpdateComment ¶
func (l *UpdateCommentLogic) UpdateComment(in *pb.UpdateCommentRequest) (*pb.UpdateCommentResponse, error)
修改
Click to show internal directories.
Click to hide internal directories.