导航新增字段key

This commit is contained in:
augushong
2020-12-20 16:04:51 +08:00
parent c87972e0fc
commit 8359d94c44
5 changed files with 38 additions and 5 deletions

View File

@@ -45,8 +45,14 @@ class ColumnFormat
->setLimit(30)
->setDefault('');
}
public static function stringTypeStatus($name = 'type')
{
return Column::make($name,'string')
->setLimit(80)
->setDefault('');
}
public static function integerTypeStatus($name,$default = 0)
public static function integerTypeStatus($name = 'type',$default = 0)
{
return Column::make($name,'integer')
->setLimit(10)
@@ -61,4 +67,15 @@ class ColumnFormat
->setLimit(20)
->setSigned(false);
}
public static function text($name)
{
return Column::make($name,'text')
->setDefault('');
}
public static function textLong($name)
{
return Column::longText($name)
->setDefault('');
}
}