app-cloudep-tweeting-service/internal/logic/commentservice/delete_comment_logic.go

32 lines
690 B
Go

package commentservicelogic
import (
"context"
"app-cloudep-feed-service/gen_result/pb/feed"
"app-cloudep-feed-service/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type DeleteCommentLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewDeleteCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteCommentLogic {
return &DeleteCommentLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// DeleteComment 刪除評論
func (l *DeleteCommentLogic) DeleteComment(in *feed.DeleteCommentReq) (*feed.OKResp, error) {
// todo: add your logic here and delete this line
return &feed.OKResp{}, nil
}