service

package
v0.0.0-...-5b7c39b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ICOService

type ICOService struct {
	pb.UnimplementedICOServiceServer
	// contains filtered or unexported fields
}

func NewICOService

func NewICOService(icoUc *biz.ICOUsecase, profileClient *client.ProfileClient) *ICOService

func (*ICOService) AddICOCoupon

func (s *ICOService) AddICOCoupon(ctx context.Context, req *pb.AddICOCouponRequest) (*emptypb.Empty, error)

func (*ICOService) GetBuyICOUserHistory

func (*ICOService) GetCoupon

func (s *ICOService) GetCoupon(ctx context.Context, req *pb.GetCouponRequest) (*pb.GetCouponResponse, error)

func (*ICOService) GetCurrentRound

func (s *ICOService) GetCurrentRound(ctx context.Context, req *emptypb.Empty) (*pb.GetCurrentRoundResponse, error)

func (*ICOService) GetICOInfo

func (s *ICOService) GetICOInfo(ctx context.Context, req *emptypb.Empty) (*pb.GetICOInfoResponse, error)

type TransactionService

type TransactionService struct {
	pb.UnimplementedTransactionServiceServer
	// contains filtered or unexported fields
}

func NewTransactionService

func NewTransactionService(transUC *biz.WalletTransactionUseCase) *TransactionService

func (*TransactionService) BuyICO

func (*TransactionService) CalcChargeFee

func (*TransactionService) ChargeFee

func (*TransactionService) Deposit

func (*TransactionService) MarketingRewardInternal

func (s *TransactionService) MarketingRewardInternal(ctx context.Context, req *pb.MarketingRewardRequest) (*pb.MarketingRewardResponse, error)

func (*TransactionService) ReferralReward

func (*TransactionService) Subscription

type UserWalletService

type UserWalletService struct {
	pb.UnimplementedUserWalletServiceServer
	// contains filtered or unexported fields
}

func NewUserWalletService

func NewUserWalletService(walletUC *biz.WalletTransactionUseCase) *UserWalletService

func (*UserWalletService) GetCurrentRateBySymbol

func (c *UserWalletService) GetCurrentRateBySymbol(ctx context.Context, req *pb.CurrentRateRequest) (*pb.CurrentRate, error)

func (*UserWalletService) GetWalletByUserId

func (s *UserWalletService) GetWalletByUserId(ctx context.Context, req *emptypb.Empty) (*pb.UserWalletResponse, error)

func (*UserWalletService) GetWalletHistories

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL