fix: regenerate api routes and swagger documentation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -687,6 +687,42 @@ definitions:
|
||||
description: Username 买家用户名。
|
||||
type: string
|
||||
type: object
|
||||
dto.OrderCreateForm:
|
||||
properties:
|
||||
content_id:
|
||||
description: ContentID 内容ID。
|
||||
type: integer
|
||||
idempotency_key:
|
||||
description: IdempotencyKey 幂等键(同一业务请求需保持一致)。
|
||||
type: string
|
||||
quantity:
|
||||
description: Quantity 购买数量(默认 1)。
|
||||
type: integer
|
||||
sku:
|
||||
description: Sku 规格标识(可选)。
|
||||
type: string
|
||||
user_coupon_id:
|
||||
description: UserCouponID 用户券ID(可选)。
|
||||
type: integer
|
||||
type: object
|
||||
dto.OrderCreateResponse:
|
||||
properties:
|
||||
order_id:
|
||||
description: OrderID 创建成功的订单ID。
|
||||
type: integer
|
||||
type: object
|
||||
dto.OrderPayForm:
|
||||
properties:
|
||||
method:
|
||||
description: Method 支付方式(alipay/balance)。
|
||||
type: string
|
||||
type: object
|
||||
dto.OrderPayResponse:
|
||||
properties:
|
||||
pay_params:
|
||||
description: PayParams 支付参数(透传给前端)。
|
||||
type: string
|
||||
type: object
|
||||
dto.OrderStatisticsResponse:
|
||||
properties:
|
||||
by_status:
|
||||
@@ -717,6 +753,12 @@ definitions:
|
||||
description: StatusDescription 状态描述(用于展示)。
|
||||
type: string
|
||||
type: object
|
||||
dto.OrderStatusResponse:
|
||||
properties:
|
||||
status:
|
||||
description: Status 订单状态(unpaid/paid/completed 等)。
|
||||
type: string
|
||||
type: object
|
||||
dto.OrderTenantLite:
|
||||
properties:
|
||||
code:
|
||||
@@ -6387,6 +6429,78 @@ paths:
|
||||
summary: Delete media asset
|
||||
tags:
|
||||
- Common
|
||||
/v1/t/{tenantCode}/orders:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 创建订单
|
||||
parameters:
|
||||
- description: 订单创建参数
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.OrderCreateForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/dto.OrderCreateResponse'
|
||||
summary: Create Order
|
||||
tags:
|
||||
- Transaction
|
||||
/v1/t/{tenantCode}/orders/{id}/pay:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 支付订单
|
||||
parameters:
|
||||
- description: 订单ID
|
||||
format: int64
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: 支付参数
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.OrderPayForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/dto.OrderPayResponse'
|
||||
summary: Pay Order
|
||||
tags:
|
||||
- Transaction
|
||||
/v1/t/{tenantCode}/orders/{id}/status:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 查询订单状态
|
||||
parameters:
|
||||
- description: 订单ID
|
||||
format: int64
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/dto.OrderStatusResponse'
|
||||
summary: Order Status
|
||||
tags:
|
||||
- Transaction
|
||||
/v1/t/{tenantCode}/storage/{any}:
|
||||
get:
|
||||
consumes:
|
||||
@@ -6601,6 +6715,28 @@ paths:
|
||||
summary: Upload part
|
||||
tags:
|
||||
- Common
|
||||
/v1/t/{tenantCode}/webhook/payment/notify:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Payment Webhook
|
||||
parameters:
|
||||
- description: Webhook Data
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.PaymentWebhookForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: success
|
||||
schema:
|
||||
type: string
|
||||
summary: Payment Webhook
|
||||
tags:
|
||||
- Transaction
|
||||
securityDefinitions:
|
||||
BasicAuth:
|
||||
type: basic
|
||||
|
||||
Reference in New Issue
Block a user