[]]], tags: ['Refund Items (Raw)'], parameters: [ new OA\Parameter(name: 'page', in: 'query', required: false, schema: new OA\Schema(type: 'integer', default: 1)), new OA\Parameter(name: 'per_page', in: 'query', required: false, schema: new OA\Schema(type: 'integer', default: 15, maximum: 100)), new OA\Parameter(name: 'company_id', in: 'query', required: false, description: '公司 ID 精确筛选', schema: new OA\Schema(type: 'integer')), new OA\Parameter(name: 'platform_id', in: 'query', required: false, description: '平台 ID 精确筛选', schema: new OA\Schema(type: 'integer')), new OA\Parameter(name: 'store_id', in: 'query', required: false, description: '店铺 ID 精确筛选', schema: new OA\Schema(type: 'integer')), new OA\Parameter(name: 'refund_id', in: 'query', required: false, description: '父退款 ID 精确筛选', schema: new OA\Schema(type: 'integer')), new OA\Parameter(name: 'refund_status_id', in: 'query', required: false, description: '退款状态 ID 精确筛选', schema: new OA\Schema(type: 'integer')), new OA\Parameter(name: 'refund_type_id', in: 'query', required: false, description: '退款类型 ID 精确筛选', schema: new OA\Schema(type: 'integer')), new OA\Parameter(name: 'platform_refund_id', in: 'query', required: false, description: '平台退款子项 ID 精确搜索', schema: new OA\Schema(type: 'string')), new OA\Parameter(name: 'platform_order_id', in: 'query', required: false, description: '关联平台订单 ID 筛选', schema: new OA\Schema(type: 'string')), new OA\Parameter(name: 'platform_product_id', in: 'query', required: false, description: '平台商品 ID 精确筛选', schema: new OA\Schema(type: 'string')), new OA\Parameter(name: 'created_date_from', in: 'query', required: false, description: '创建时间起始(含)', schema: new OA\Schema(type: 'string', format: 'date')), new OA\Parameter(name: 'created_date_to', in: 'query', required: false, description: '创建时间截止(含)', schema: new OA\Schema(type: 'string', format: 'date')), ], responses: [ new OA\Response( response: 200, description: '获取成功', content: new OA\JsonContent(properties: [ new OA\Property(property: 'code', type: 'integer', example: 0), new OA\Property(property: 'message', type: 'string', example: '获取成功'), new OA\Property(property: 'data', properties: [ new OA\Property(property: 'items', type: 'array', items: new OA\Items(properties: [ new OA\Property(property: 'id', type: 'integer'), new OA\Property(property: 'platform_refund_id', type: 'string'), new OA\Property(property: 'platform_parent_refund_id', type: 'string'), new OA\Property(property: 'platform_order_id', type: 'string'), new OA\Property(property: 'store_id', type: 'integer'), new OA\Property(property: 'company_id', type: 'integer'), new OA\Property(property: 'platform_id', type: 'integer'), new OA\Property(property: 'refund_status_id', type: 'integer'), new OA\Property(property: 'created_date', type: 'string', format: 'date-time'), new OA\Property(property: 'updated_at', type: 'string', format: 'date-time'), ], type: 'object')), new OA\Property(property: 'total', type: 'integer'), new OA\Property(property: 'page', type: 'integer'), new OA\Property(property: 'per_page', type: 'integer'), ], type: 'object'), ]) ), new OA\Response(response: 401, description: '未认证', content: new OA\JsonContent(ref: '#/components/schemas/ErrorResponse')), new OA\Response(response: 403, description: '无权限', content: new OA\JsonContent(ref: '#/components/schemas/ErrorResponse')), ] )] #[RequestMapping(path: "", methods: "GET")] public function index(): ResponseInterface|array { return parent::index(); } /** * 退款项详情(Raw) */ #[OA\Get( path: '/raw/refund-items/{id}', summary: '退款项详情(Raw)', description: '获取退款项原始数据详情。返回关键标识 + 完整 raw + ext。', security: [['bearerAuth' => []]], tags: ['Refund Items (Raw)'], parameters: [ new OA\Parameter(name: 'id', in: 'path', required: true, description: '退款项 ID', schema: new OA\Schema(type: 'integer')), ], responses: [ new OA\Response( response: 200, description: '获取成功', content: new OA\JsonContent(properties: [ new OA\Property(property: 'code', type: 'integer', example: 0), new OA\Property(property: 'message', type: 'string', example: '获取成功'), new OA\Property(property: 'data', properties: [ new OA\Property(property: 'id', type: 'integer'), new OA\Property(property: 'platform_refund_id', type: 'string'), new OA\Property(property: 'platform_parent_refund_id', type: 'string'), new OA\Property(property: 'platform_order_id', type: 'string'), new OA\Property(property: 'store_id', type: 'integer'), new OA\Property(property: 'company_id', type: 'integer'), new OA\Property(property: 'platform_id', type: 'integer'), new OA\Property(property: 'refund_status_id', type: 'integer'), new OA\Property(property: 'raw', type: 'object', description: '平台原始子项数据'), new OA\Property(property: 'ext', type: 'object', nullable: true), new OA\Property(property: 'created_date', type: 'string', format: 'date-time'), ], type: 'object'), ]) ), new OA\Response(response: 401, description: '未认证', content: new OA\JsonContent(ref: '#/components/schemas/ErrorResponse')), new OA\Response(response: 403, description: '无权限', content: new OA\JsonContent(ref: '#/components/schemas/ErrorResponse')), new OA\Response(response: 404, description: '数据不存在', content: new OA\JsonContent(ref: '#/components/schemas/ErrorResponse')), ] )] #[RequestMapping(path: "{id}", methods: "GET")] public function show(int $id): ResponseInterface|array { return parent::show($id); } }