fix querylist
This commit is contained in:
parent
e0f1a848a6
commit
80861c53f1
@ -24,6 +24,7 @@ type Query {
|
|||||||
IsPaid bool `json:"is_paid"` // 是否支付
|
IsPaid bool `json:"is_paid"` // 是否支付
|
||||||
IsQueryCompleted bool `json:"is_query_completed"` // 查询是否完成
|
IsQueryCompleted bool `json:"is_query_completed"` // 查询是否完成
|
||||||
IsAuthCompleted bool `json:"is_auth_completed"` // 授权是否完成
|
IsAuthCompleted bool `json:"is_auth_completed"` // 授权是否完成
|
||||||
|
IsRefunded bool `json:"is_refunded"` // 是否退款
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -69,6 +69,9 @@ func (l *QueryListLogic) QueryList(req *types.QueryListReq) (resp *types.QueryLi
|
|||||||
// 设置订单支付状态
|
// 设置订单支付状态
|
||||||
query.IsPaid = orderModel.Status == model.OrderStatusPaid
|
query.IsPaid = orderModel.Status == model.OrderStatusPaid
|
||||||
|
|
||||||
|
// 判断订单是否已退款
|
||||||
|
query.IsRefunded = orderModel.Status == model.OrderStatusRefunded
|
||||||
|
|
||||||
// 查询查询状态
|
// 查询查询状态
|
||||||
queryInfo, findQueryErr := l.svcCtx.QueryModel.FindOneByOrderId(l.ctx, orderModel.Id)
|
queryInfo, findQueryErr := l.svcCtx.QueryModel.FindOneByOrderId(l.ctx, orderModel.Id)
|
||||||
if findQueryErr == nil {
|
if findQueryErr == nil {
|
||||||
|
@ -389,6 +389,7 @@ type Query struct {
|
|||||||
IsPaid bool `json:"is_paid"` // 是否支付
|
IsPaid bool `json:"is_paid"` // 是否支付
|
||||||
IsQueryCompleted bool `json:"is_query_completed"` // 查询是否完成
|
IsQueryCompleted bool `json:"is_query_completed"` // 查询是否完成
|
||||||
IsAuthCompleted bool `json:"is_auth_completed"` // 授权是否完成
|
IsAuthCompleted bool `json:"is_auth_completed"` // 授权是否完成
|
||||||
|
IsRefunded bool `json:"is_refunded"` // 是否退款
|
||||||
}
|
}
|
||||||
|
|
||||||
type QueryDetailByOrderIdReq struct {
|
type QueryDetailByOrderIdReq struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user