32 lines
694 B
Go
32 lines
694 B
Go
package commentservicelogic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"app-cloudep-feed-service/gen_result/pb/tweeting"
|
|
"app-cloudep-feed-service/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type LikeCommentLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewLikeCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LikeCommentLogic {
|
|
return &LikeCommentLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
// LikeComment 點讚/取消讚 評論
|
|
func (l *LikeCommentLogic) LikeComment(in *tweeting.LikeReq) (*tweeting.OKResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &tweeting.OKResp{}, nil
|
|
}
|