Documentation ¶
Index ¶
- Variables
- type BalanceService
- type BalanceServiceImpl
- func (s *BalanceServiceImpl) CreateBalance(ctx context.Context, req *gentrade.CreateBalanceReq) (resp *gentrade.CreateBalanceResp, err error)
- func (s *BalanceServiceImpl) GetBalance(ctx context.Context, req *gentrade.GetBalanceReq) (resp *gentrade.GetBalanceResp, err error)
- func (s *BalanceServiceImpl) UpdateBalance(ctx context.Context, req *gentrade.UpdateBalanceReq) (resp *gentrade.UpdateBalanceResp, err error)
- type StockService
- type StockServiceImpl
- func (s *StockServiceImpl) AddStock(ctx context.Context, req *gentrade.AddStockReq) (resp *gentrade.AddStockResp, err error)
- func (s *StockServiceImpl) GetStock(ctx context.Context, req *gentrade.GetStockReq) (resp *gentrade.GetStockResp, err error)
- func (s *StockServiceImpl) GetStocks(ctx context.Context, req *gentrade.GetStocksReq) (resp *gentrade.GetStocksResp, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BalanceSet = wire.NewSet( wire.Struct(new(BalanceServiceImpl), "*"), wire.Bind(new(BalanceService), new(*BalanceServiceImpl)), )
View Source
var StockSet = wire.NewSet( wire.Struct(new(StockServiceImpl), "*"), wire.Bind(new(StockService), new(*StockServiceImpl)), )
Functions ¶
This section is empty.
Types ¶
type BalanceService ¶
type BalanceService interface { UpdateBalance(ctx context.Context, req *gentrade.UpdateBalanceReq) (resp *gentrade.UpdateBalanceResp, err error) GetBalance(ctx context.Context, req *gentrade.GetBalanceReq) (resp *gentrade.GetBalanceResp, err error) CreateBalance(ctx context.Context, req *gentrade.CreateBalanceReq) (resp *gentrade.CreateBalanceResp, err error) }
type BalanceServiceImpl ¶
type BalanceServiceImpl struct { Config *config.Config Redis *redis.Redis BalanceMongoMapper balancemapper.IBalanceMongoMapper }
func (*BalanceServiceImpl) CreateBalance ¶
func (s *BalanceServiceImpl) CreateBalance(ctx context.Context, req *gentrade.CreateBalanceReq) (resp *gentrade.CreateBalanceResp, err error)
func (*BalanceServiceImpl) GetBalance ¶
func (s *BalanceServiceImpl) GetBalance(ctx context.Context, req *gentrade.GetBalanceReq) (resp *gentrade.GetBalanceResp, err error)
func (*BalanceServiceImpl) UpdateBalance ¶
func (s *BalanceServiceImpl) UpdateBalance(ctx context.Context, req *gentrade.UpdateBalanceReq) (resp *gentrade.UpdateBalanceResp, err error)
type StockService ¶
type StockService interface { GetStocks(ctx context.Context, req *gentrade.GetStocksReq) (resp *gentrade.GetStocksResp, err error) GetStock(ctx context.Context, req *gentrade.GetStockReq) (resp *gentrade.GetStockResp, err error) AddStock(ctx context.Context, req *gentrade.AddStockReq) (resp *gentrade.AddStockResp, err error) }
type StockServiceImpl ¶
func (*StockServiceImpl) AddStock ¶
func (s *StockServiceImpl) AddStock(ctx context.Context, req *gentrade.AddStockReq) (resp *gentrade.AddStockResp, err error)
func (*StockServiceImpl) GetStock ¶
func (s *StockServiceImpl) GetStock(ctx context.Context, req *gentrade.GetStockReq) (resp *gentrade.GetStockResp, err error)
func (*StockServiceImpl) GetStocks ¶
func (s *StockServiceImpl) GetStocks(ctx context.Context, req *gentrade.GetStocksReq) (resp *gentrade.GetStocksResp, err error)
Click to show internal directories.
Click to hide internal directories.