app-cloudep-reaction-service/internal/server/reaction/reaction_server.go

30 lines
748 B
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.3
// Source: reaction.proto
package server
import (
"context"
"code.30cm.net/digimon/app-cloudep-reaction-service/gen_result/pb/reaction"
reactionlogic "code.30cm.net/digimon/app-cloudep-reaction-service/internal/logic/reaction"
"code.30cm.net/digimon/app-cloudep-reaction-service/internal/svc"
)
type ReactionServer struct {
svcCtx *svc.ServiceContext
reaction.UnimplementedReactionServer
}
func NewReactionServer(svcCtx *svc.ServiceContext) *ReactionServer {
return &ReactionServer{
svcCtx: svcCtx,
}
}
func (s *ReactionServer) Empty(ctx context.Context, in *reaction.NoneReq) (*reaction.OKResp, error) {
l := reactionlogic.NewEmptyLogic(ctx, s.svcCtx)
return l.Empty(in)
}