32 lines
703 B
Go
32 lines
703 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 CountLikeLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewCountLikeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CountLikeLogic {
|
|
return &CountLikeLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
// CountLike 取得讚/不讚數量
|
|
func (l *CountLikeLogic) CountLike(in *tweeting.LikeCountReq) (*tweeting.LikeCountResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &tweeting.LikeCountResp{}, nil
|
|
}
|