代理后端出版
This commit is contained in:
77
docs/schemas/transfer.js
Normal file
77
docs/schemas/transfer.js
Normal file
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* @swagger
|
||||
* components:
|
||||
* schemas:
|
||||
* Transfer:
|
||||
* type: object
|
||||
* required:
|
||||
* - id
|
||||
* - user_id
|
||||
* - amount
|
||||
* - type
|
||||
* - status
|
||||
* properties:
|
||||
* id:
|
||||
* type: integer
|
||||
* description: 转账记录ID
|
||||
* user_id:
|
||||
* type: integer
|
||||
* description: 用户ID
|
||||
* amount:
|
||||
* type: number
|
||||
* format: decimal
|
||||
* description: 转账金额
|
||||
* type:
|
||||
* type: string
|
||||
* enum: [deposit, withdraw, transfer]
|
||||
* description: 转账类型
|
||||
* status:
|
||||
* type: string
|
||||
* enum: [pending, success, failed, cancelled]
|
||||
* description: 转账状态
|
||||
* transaction_id:
|
||||
* type: string
|
||||
* description: 交易单号
|
||||
* payment_method:
|
||||
* type: string
|
||||
* description: 支付方式
|
||||
* bank_info:
|
||||
* type: object
|
||||
* properties:
|
||||
* bank_name:
|
||||
* type: string
|
||||
* description: 银行名称
|
||||
* account_number:
|
||||
* type: string
|
||||
* description: 账户号码
|
||||
* account_name:
|
||||
* type: string
|
||||
* description: 账户名称
|
||||
* description: 银行信息
|
||||
* description:
|
||||
* type: string
|
||||
* description: 转账描述
|
||||
* fee:
|
||||
* type: number
|
||||
* format: decimal
|
||||
* description: 手续费
|
||||
* actual_amount:
|
||||
* type: number
|
||||
* format: decimal
|
||||
* description: 实际到账金额
|
||||
* processed_at:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* description: 处理时间
|
||||
* created_at:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* description: 创建时间
|
||||
* updated_at:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* description: 更新时间
|
||||
* user:
|
||||
* $ref: '#/components/schemas/User'
|
||||
* description: 关联用户信息
|
||||
*/
|
||||
Reference in New Issue
Block a user