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.
34 lines
483 B
34 lines
483 B
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
|
class BaseFormExtendRepository
|
|
{
|
|
/**
|
|
* 获取表名字
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return request('table_name');
|
|
}
|
|
|
|
/**
|
|
* 创建/更新完数据前置操作
|
|
*/
|
|
public static function saveBefore($all)
|
|
{
|
|
return $all;
|
|
}
|
|
|
|
|
|
/**
|
|
* 创建/更新完数据后置操作
|
|
*/
|
|
public static function saveAfter($all, $model)
|
|
{
|
|
return $model;
|
|
}
|
|
|
|
}
|