Merge branch 'lixing' into dev
This commit is contained in:
@@ -46,5 +46,6 @@ type TransferCastileToGameListResp {
|
|||||||
type UserCastileBalanceResp {
|
type UserCastileBalanceResp {
|
||||||
TotalCastile int `json:total_castile` //总数
|
TotalCastile int `json:total_castile` //总数
|
||||||
TransferAmount int `json:transfer_amount` //已转回游戏内的数量
|
TransferAmount int `json:transfer_amount` //已转回游戏内的数量
|
||||||
|
TotalBalance int `json:total_balance` //castile当前余额
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ func (l *GetCastileBalanceLogic) GetCastileBalance() (resp *types.UserCastileBal
|
|||||||
res := &types.UserCastileBalanceResp{
|
res := &types.UserCastileBalanceResp{
|
||||||
TotalCastile: 0,
|
TotalCastile: 0,
|
||||||
TransferAmount: 0,
|
TransferAmount: 0,
|
||||||
|
TotalBalance: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
cToken, err := l.svcCtx.CastileTokenModel.FindOneByEmail(l.ctx, u.Email)
|
cToken, err := l.svcCtx.CastileTokenModel.FindOneByEmail(l.ctx, u.Email)
|
||||||
@@ -57,5 +58,6 @@ func (l *GetCastileBalanceLogic) GetCastileBalance() (resp *types.UserCastileBal
|
|||||||
return &types.UserCastileBalanceResp{
|
return &types.UserCastileBalanceResp{
|
||||||
TotalCastile: int(cToken.Total),
|
TotalCastile: int(cToken.Total),
|
||||||
TransferAmount: int(cToken.Transfer),
|
TransferAmount: int(cToken.Transfer),
|
||||||
|
TotalBalance: int(cToken.Total) - int(cToken.Transfer),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -279,6 +279,7 @@ type UnlockChapterReq struct {
|
|||||||
type UserCastileBalanceResp struct {
|
type UserCastileBalanceResp struct {
|
||||||
TotalCastile int `json:total_castile` //总数
|
TotalCastile int `json:total_castile` //总数
|
||||||
TransferAmount int `json:transfer_amount` //已转回游戏内的数量
|
TransferAmount int `json:transfer_amount` //已转回游戏内的数量
|
||||||
|
TotalBalance int `json:total_balance` //castile当前余额
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserNft struct {
|
type UserNft struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user