transferserver.go 596 B

12345678910111213141516171819202122232425262728
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: transfer.proto
  3. package server
  4. import (
  5. "context"
  6. "ylink/core/transfer/rpc/internal/logic"
  7. "ylink/core/transfer/rpc/internal/svc"
  8. "ylink/core/transfer/rpc/pb"
  9. )
  10. type TransferServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedTransferServer
  13. }
  14. func NewTransferServer(svcCtx *svc.ServiceContext) *TransferServer {
  15. return &TransferServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (s *TransferServer) Invoke(ctx context.Context, in *pb.TransferReq) (*pb.TransferResp, error) {
  20. l := logic.NewInvokeLogic(ctx, s.svcCtx)
  21. return l.Invoke(in)
  22. }