feat: add coupon risk review
This commit is contained in:
@@ -1345,6 +1345,68 @@ definitions:
|
||||
description: Value 优惠券面额/折扣值。
|
||||
type: integer
|
||||
type: object
|
||||
dto.SuperCouponRiskItem:
|
||||
properties:
|
||||
coupon_id:
|
||||
description: CouponID 优惠券ID。
|
||||
type: integer
|
||||
coupon_title:
|
||||
description: CouponTitle 优惠券标题。
|
||||
type: string
|
||||
created_at:
|
||||
description: CreatedAt 领取时间(RFC3339)。
|
||||
type: string
|
||||
id:
|
||||
description: ID 用户券ID。
|
||||
type: integer
|
||||
order_amount_paid:
|
||||
description: OrderAmountPaid 订单实付金额(分)。
|
||||
type: integer
|
||||
order_id:
|
||||
description: OrderID 使用订单ID。
|
||||
type: integer
|
||||
order_status:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.OrderStatus'
|
||||
description: OrderStatus 订单状态。
|
||||
order_status_description:
|
||||
description: OrderStatusDescription 订单状态描述(用于展示)。
|
||||
type: string
|
||||
paid_at:
|
||||
description: PaidAt 订单支付时间(RFC3339)。
|
||||
type: string
|
||||
risk_reason:
|
||||
description: RiskReason 异常说明。
|
||||
type: string
|
||||
risk_type:
|
||||
description: RiskType 异常类型。
|
||||
type: string
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.UserCouponStatus'
|
||||
description: Status 用户券状态。
|
||||
status_description:
|
||||
description: StatusDescription 状态描述(用于展示)。
|
||||
type: string
|
||||
tenant_code:
|
||||
description: TenantCode 租户编码。
|
||||
type: string
|
||||
tenant_id:
|
||||
description: TenantID 租户ID。
|
||||
type: integer
|
||||
tenant_name:
|
||||
description: TenantName 租户名称。
|
||||
type: string
|
||||
used_at:
|
||||
description: UsedAt 使用时间(RFC3339)。
|
||||
type: string
|
||||
user_id:
|
||||
description: UserID 用户ID。
|
||||
type: integer
|
||||
username:
|
||||
description: Username 用户名。
|
||||
type: string
|
||||
type: object
|
||||
dto.SuperCouponStatusUpdateForm:
|
||||
properties:
|
||||
status:
|
||||
@@ -2975,6 +3037,37 @@ paths:
|
||||
summary: List coupon grants
|
||||
tags:
|
||||
- Coupon
|
||||
/super/v1/coupon-risks:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: List coupon risk records across tenants
|
||||
parameters:
|
||||
- description: Page number
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- description: Page size
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/requests.Pager'
|
||||
- properties:
|
||||
items:
|
||||
items:
|
||||
$ref: '#/definitions/dto.SuperCouponRiskItem'
|
||||
type: array
|
||||
type: object
|
||||
summary: List coupon risks
|
||||
tags:
|
||||
- Coupon
|
||||
/super/v1/coupons:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user