add refund items

This commit is contained in:
2026-03-13 13:50:56 +08:00
parent a3a08ade86
commit 161a2ecb7f
5 changed files with 4348 additions and 0 deletions
+33
View File
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace App\Model;
use Hyperf\DbConnection\Model\Model;
use OpenApi\Attributes as OA;
/**
* @property int $id 主键
@@ -35,6 +36,38 @@ use Hyperf\DbConnection\Model\Model;
* @property \Carbon\Carbon $updated_at
* @mixin \App_Model_RefundItem
*/
#[OA\Schema(
schema: 'RefundItem',
type: 'object',
properties: [
new OA\Property(property: 'id', type: 'integer', example: 1),
new OA\Property(property: 'company_id', type: 'integer', example: 1),
new OA\Property(property: 'platform_id', type: 'integer', example: 2),
new OA\Property(property: 'store_id', type: 'integer', example: 100),
new OA\Property(property: 'refund_id', type: 'integer', example: 50),
new OA\Property(property: 'platform_parent_refund_id', type: 'string', nullable: true, example: 'PRF-001'),
new OA\Property(property: 'platform_refund_id', type: 'string', example: 'RF-ITEM-001'),
new OA\Property(property: 'refund_status_id', type: 'integer', example: 1),
new OA\Property(property: 'refund_type_id', type: 'integer', example: 2),
new OA\Property(property: 'reason', type: 'string', nullable: true, example: '商品质量问题'),
new OA\Property(property: 'currency', type: 'string', example: 'CNY'),
new OA\Property(property: 'buyer_user_id', type: 'string', nullable: true, example: 'buyer_123'),
new OA\Property(property: 'platform_order_id', type: 'string', example: 'ORD-20260101-001'),
new OA\Property(property: 'platform_sub_order_id', type: 'string', nullable: true, example: 'SUB-001'),
new OA\Property(property: 'platform_product_id', type: 'string', nullable: true, example: 'PROD-001'),
new OA\Property(property: 'quantity', type: 'integer', example: 1),
new OA\Property(property: 'refund_amount', type: 'number', format: 'decimal', example: 99.99),
new OA\Property(property: 'raw', type: 'object', nullable: true, description: '平台原始子项数据'),
new OA\Property(property: 'ext', type: 'object', nullable: true, description: '扩展字段'),
new OA\Property(property: 'order_created_date', type: 'string', format: 'date-time', nullable: true),
new OA\Property(property: 'order_paid_date', type: 'string', format: 'date-time', nullable: true),
new OA\Property(property: 'created_date', type: 'string', format: 'date-time'),
new OA\Property(property: 'updated_date', type: 'string', format: 'date-time', nullable: true),
new OA\Property(property: 'completed_date', type: 'string', format: 'date-time', nullable: true),
new OA\Property(property: 'created_at', type: 'string', format: 'date-time'),
new OA\Property(property: 'updated_at', type: 'string', format: 'date-time'),
]
)]
class RefundItem extends Model
{
/**