修复产品修改、删除
This commit is contained in:
34
apps/sentinel/internal/server/topup/topupserver.go
Normal file
34
apps/sentinel/internal/server/topup/topupserver.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user