帖子

测试PHP代码

<?php

namespace Plugins\ImageX\Services;

use Fresns\DTO\DTO;

class UploadFile extends DTO
{
    public function rules(): array
    {
        return [
            'platformId' => ['integer', 'required'],
            'usageType' => ['integer', 'required'],
            'tableName' => ['string', 'required'],
            'tableColumn' => ['string', 'required'],
            'tableId' => ['integer', 'nullable'],
            'tableKey' => ['string', 'nullable'],
            'aid' => ['string', 'nullable'],
            'uid' => ['integer', 'nullable'],
            'type' => ['integer', 'required'],
            'file' => ['file', 'required'],
            'moreJson' => ['json', 'nullable'],
        ];
    }
}
https://www.fireself.cn/post/mgJjTRoc

未登录无法操作

评论 1

上滑加载更多
须弥技术

专业PHP开发,运维技术社区

打开 App