34 lines
825 B
Go
34 lines
825 B
Go
package postservicelogic
|
||
|
||
import (
|
||
"context"
|
||
|
||
"app-cloudep-tweeting-service/gen_result/pb/tweeting"
|
||
"app-cloudep-tweeting-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),
|
||
}
|
||
}
|
||
|
||
// 這個人按讚的文章列表(輸入UID 以及文章id,返回這個人有沒有對這些文章按讚)
|
||
|
||
// GetLikeStatus 取得讚/不讚狀態
|
||
func (l *GetLikeStatusLogic) GetLikeStatus(in *tweeting.LikeReq) (*tweeting.OKResp, error) {
|
||
// todo: add your logic here and delete this line
|
||
|
||
return &tweeting.OKResp{}, nil
|
||
}
|