32 lines
704 B
Go
32 lines
704 B
Go
package postservicelogic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"app-cloudep-feed-service/gen_result/pb/tweeting"
|
|
"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 取得讚/不讚狀態
|
|
func (l *GetLikeStatusLogic) GetLikeStatus(in *tweeting.LikeReq) (*tweeting.OKResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &tweeting.OKResp{}, nil
|
|
}
|