Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserAssetLogic ¶
func NewAddUserAssetLogic ¶
func NewAddUserAssetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddUserAssetLogic
func (*AddUserAssetLogic) AddUserAsset ¶
func (l *AddUserAssetLogic) AddUserAsset(in *pb.AddUserAssetReq) (*pb.Empty, error)
增加用户资产
type DeductUserAssetLogic ¶
func NewDeductUserAssetLogic ¶
func NewDeductUserAssetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeductUserAssetLogic
func (*DeductUserAssetLogic) DeductUserAsset ¶
func (l *DeductUserAssetLogic) DeductUserAsset(in *pb.DeductUserAssetReq) (*pb.Empty, error)
扣减用户资产
type FreezeUserAssetLogic ¶
func NewFreezeUserAssetLogic ¶
func NewFreezeUserAssetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FreezeUserAssetLogic
func (*FreezeUserAssetLogic) FreezeUserAsset ¶
func (l *FreezeUserAssetLogic) FreezeUserAsset(in *pb.FreezeUserAssetReq) (*pb.Empty, error)
冻结用户资产。
type GetUserAssetByCoinLogic ¶
func NewGetUserAssetByCoinLogic ¶
func NewGetUserAssetByCoinLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserAssetByCoinLogic
func (*GetUserAssetByCoinLogic) GetUserAssetByCoin ¶
func (l *GetUserAssetByCoinLogic) GetUserAssetByCoin(in *pb.GetUserAssetReq) (*pb.GetUserAssetResp, error)
获取用户指定币种的资产
type GetUserAssetListLogic ¶
func NewGetUserAssetListLogic ¶
func NewGetUserAssetListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserAssetListLogic
func (*GetUserAssetListLogic) GetUserAssetList ¶
func (l *GetUserAssetListLogic) GetUserAssetList(in *pb.GetUserAssetListReq) (*pb.GetUserAssetListResp, error)
GetUserAssetList 获取用户所有币中资产。
type HandleMatchResultLogic ¶
type HandleMatchResultLogic struct {
// contains filtered or unexported fields
}
HandleMatchResultLogic 结算
func NewHandleMatchResultLogic ¶
func NewHandleMatchResultLogic(svcCtx *svc.ServiceContext) *HandleMatchResultLogic
func (*HandleMatchResultLogic) HandleCancelOrder ¶
func (l *HandleMatchResultLogic) HandleCancelOrder(cancelResp *matchMq.MatchResp_Cancel, storeConsumedMessageId func() error) error
HandleCancelOrder 取消订单解冻
func (*HandleMatchResultLogic) HandleMatchResult ¶
func (l *HandleMatchResultLogic) HandleMatchResult(result *matchMq.MatchResp_MatchResult, storeConsumedMessageId func() error) error
HandleMatchResult 结算,扣减用户资产
type LoginLogic ¶
func NewLoginLogic ¶
func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginLogic
type LoginOutLogic ¶
func NewLoginOutLogic ¶
func NewLoginOutLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginOutLogic
func (*LoginOutLogic) LoginOut ¶
func (l *LoginOutLogic) LoginOut(in *pb.LoginOutReq) (*pb.Empty, error)
登出
type RegisterLogic ¶
func NewRegisterLogic ¶
func NewRegisterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegisterLogic
func (*RegisterLogic) Register ¶
func (l *RegisterLogic) Register(in *pb.RegisterReq) (*pb.RegisterResp, error)
注册
type UnFreezeUserAssetLogic ¶
func NewUnFreezeUserAssetLogic ¶
func NewUnFreezeUserAssetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnFreezeUserAssetLogic
func (*UnFreezeUserAssetLogic) UnFreezeUserAsset ¶
func (l *UnFreezeUserAssetLogic) UnFreezeUserAsset(in *pb.FreezeUserAssetReq) (*pb.Empty, error)
解冻用户资产
type ValidateTokenLogic ¶
func NewValidateTokenLogic ¶
func NewValidateTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ValidateTokenLogic
func (*ValidateTokenLogic) ValidateToken ¶
func (l *ValidateTokenLogic) ValidateToken(in *pb.ValidateTokenReq) (*pb.ValidateTokenResp, error)
验证token是否有效。
Source Files ¶
Click to show internal directories.
Click to hide internal directories.