mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 02:52:49 +08:00
完成导航管理,可用于小程序导航,轮播图
This commit is contained in:
18
app/common/ColumnFormat.php
Normal file
18
app/common/ColumnFormat.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace app\common;
|
||||
|
||||
use think\migration\db\Column;
|
||||
|
||||
class ColumnFormat
|
||||
{
|
||||
public static function timestamp($name){
|
||||
return Column::make($name,'integer')
|
||||
->setLimit(10)
|
||||
->setSigned(false);
|
||||
}
|
||||
public static function loadDeleteTime(){
|
||||
return Column::make('delete_time','integer')
|
||||
->setLimit(10)
|
||||
->setSigned(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user