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 LikeLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewLikeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LikeLogic { return &LikeLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // Like 點讚/取消讚 貼文 func (l *LikeLogic) Like(in *tweeting.LikeReq) (*tweeting.OKResp, error) { // todo: add your logic here and delete this line return &tweeting.OKResp{}, nil }