You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ss-visit/app/Repositories/BaseFormExtendRepository.php

47 lines
709 B

<?php
namespace App\Repositories;
use App\Models\CustomFormField;
use App\Models\Upload;
class BaseFormExtendRepository
{
/**
* 获取表名字
*/
public static function tableName()
{
return request('table_name');
}
/**
* 附件文件详情。列表后置操作
* @param $list
* @return mixed
*/
public static function listAfterAddFiles($list)
{
}
/**
* 创建/更新完数据前置操作
*/
public static function saveBefore($all)
{
return $all;
}
/**
* 创建/更新完数据后置操作
*/
public static function saveAfter($all, $model)
{
return $model;
}
}