fix querylist

This commit is contained in:
liangzai 2025-05-28 18:08:47 +08:00
parent e0f1a848a6
commit 80861c53f1
3 changed files with 5 additions and 0 deletions

View File

@ -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"` // 是否退款
} }

View File

@ -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 {

View File

@ -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 {