/** * @swagger * components: * schemas: * Commission: * type: object * required: * - id * - agent_id * - user_id * - amount * - commission_type * - status * properties: * id: * type: integer * description: 佣金记录ID * agent_id: * type: integer * description: 代理ID * user_id: * type: integer * description: 用户ID * amount: * type: number * format: decimal * description: 佣金金额 * commission_type: * type: string * description: 佣金类型 * status: * type: string * enum: [pending, paid, cancelled] * description: 佣金状态 * description: * type: string * description: 佣金描述 * order_id: * type: string * description: 关联订单ID * payment_method: * type: string * description: 支付方式 * payment_time: * 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: 关联用户信息 */