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

32 lines
713 B
Go
Raw Normal View History

2024-08-28 09:09:01 +00:00
package commentservicelogic
import (
"context"
2024-08-28 14:24:47 +00:00
"app-cloudep-feed-service/gen_result/pb/tweeting"
2024-08-28 09:09:01 +00:00
"app-cloudep-feed-service/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type GetLikeStatusLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewGetLikeStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetLikeStatusLogic {
return &GetLikeStatusLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// GetLikeStatus 取得讚/不讚評論狀態
2024-08-28 14:24:47 +00:00
func (l *GetLikeStatusLogic) GetLikeStatus(in *tweeting.LikeReq) (*tweeting.OKResp, error) {
2024-08-28 09:09:01 +00:00
// todo: add your logic here and delete this line
2024-08-28 14:24:47 +00:00
return &tweeting.OKResp{}, nil
2024-08-28 09:09:01 +00:00
}