tianyuan-api-server/apps/sentinel/internal/server/topup/topupserver.go

35 lines
876 B
Go
Raw Normal View History

2024-10-15 00:23:07 +08:00
// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.2
// Source: sentinel.proto
package server
import (
"context"
"tianyuan-api/apps/sentinel/internal/logic/topup"
"tianyuan-api/apps/sentinel/internal/svc"
"tianyuan-api/apps/sentinel/sentinel"
)
type TopUpServer struct {
svcCtx *svc.ServiceContext
sentinel.UnimplementedTopUpServer
}
func NewTopUpServer(svcCtx *svc.ServiceContext) *TopUpServer {
return &TopUpServer{
svcCtx: svcCtx,
}
}
func (s *TopUpServer) AliTopUp(ctx context.Context, in *sentinel.AliTopUpRequest) (*sentinel.AliTopUpResponse, error) {
l := topuplogic.NewAliTopUpLogic(ctx, s.svcCtx)
return l.AliTopUp(in)
}
func (s *TopUpServer) AliTopUpNotify(ctx context.Context, in *sentinel.AliTopUpNotifyRequest) (*sentinel.AliTopUpNotifyResponse, error) {
l := topuplogic.NewAliTopUpNotifyLogic(ctx, s.svcCtx)
return l.AliTopUpNotify(in)
}