Documentation ¶
Index ¶
- Variables
- type ICOService
- func (s *ICOService) AddICOCoupon(ctx context.Context, req *pb.AddICOCouponRequest) (*emptypb.Empty, error)
- func (s *ICOService) GetBuyICOUserHistory(ctx context.Context, req *pb.GetBuyICOUserHistoryRequest) (*pb.GetBuyICOUserHistoryResponse, error)
- func (s *ICOService) GetCoupon(ctx context.Context, req *pb.GetCouponRequest) (*pb.GetCouponResponse, error)
- func (s *ICOService) GetCurrentRound(ctx context.Context, req *emptypb.Empty) (*pb.GetCurrentRoundResponse, error)
- func (s *ICOService) GetICOInfo(ctx context.Context, req *emptypb.Empty) (*pb.GetICOInfoResponse, error)
- type TransactionService
- func (s *TransactionService) BuyICO(ctx context.Context, req *pb.BuyICORequest) (*pb.BuyICOResponse, error)
- func (s *TransactionService) CalcChargeFee(ctx context.Context, req *pb.CalcChargeFeeRequest) (*pb.CalcChargeFeeResponse, error)
- func (s *TransactionService) ChargeFee(ctx context.Context, req *pb.ChargeFeeRequest) (*pb.ChargeFeeResponse, error)
- func (s *TransactionService) Deposit(ctx context.Context, req *pb.DepositRequest) (*pb.DepositResponse, error)
- func (s *TransactionService) MarketingRewardInternal(ctx context.Context, req *pb.MarketingRewardRequest) (*pb.MarketingRewardResponse, error)
- func (s *TransactionService) ReferralReward(ctx context.Context, req *pb.ReferralRewardRequest) (*pb.ReferralRewardResponse, error)
- func (s *TransactionService) Subscription(ctx context.Context, req *pb.SubsciptionRequest) (*pb.SubsciptionResponse, error)
- type UserWalletService
- func (c *UserWalletService) GetCurrentRateBySymbol(ctx context.Context, req *pb.CurrentRateRequest) (*pb.CurrentRate, error)
- func (s *UserWalletService) GetWalletByUserId(ctx context.Context, req *emptypb.Empty) (*pb.UserWalletResponse, error)
- func (s *UserWalletService) GetWalletHistories(ctx context.Context, req *pb.GetWalletHistoryRequest) (*pb.GetWalletHistoryResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewTransactionService, NewUserWalletService, NewICOService)
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 (s *ICOService) GetBuyICOUserHistory(ctx context.Context, req *pb.GetBuyICOUserHistoryRequest) (*pb.GetBuyICOUserHistoryResponse, error)
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 (s *TransactionService) BuyICO(ctx context.Context, req *pb.BuyICORequest) (*pb.BuyICOResponse, error)
func (*TransactionService) CalcChargeFee ¶
func (s *TransactionService) CalcChargeFee(ctx context.Context, req *pb.CalcChargeFeeRequest) (*pb.CalcChargeFeeResponse, error)
func (*TransactionService) ChargeFee ¶
func (s *TransactionService) ChargeFee(ctx context.Context, req *pb.ChargeFeeRequest) (*pb.ChargeFeeResponse, error)
func (*TransactionService) Deposit ¶
func (s *TransactionService) Deposit(ctx context.Context, req *pb.DepositRequest) (*pb.DepositResponse, error)
func (*TransactionService) MarketingRewardInternal ¶
func (s *TransactionService) MarketingRewardInternal(ctx context.Context, req *pb.MarketingRewardRequest) (*pb.MarketingRewardResponse, error)
func (*TransactionService) ReferralReward ¶
func (s *TransactionService) ReferralReward(ctx context.Context, req *pb.ReferralRewardRequest) (*pb.ReferralRewardResponse, error)
func (*TransactionService) Subscription ¶
func (s *TransactionService) Subscription(ctx context.Context, req *pb.SubsciptionRequest) (*pb.SubsciptionResponse, error)
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 ¶
func (s *UserWalletService) GetWalletHistories(ctx context.Context, req *pb.GetWalletHistoryRequest) (*pb.GetWalletHistoryResponse, error)
Click to show internal directories.
Click to hide internal directories.