ManystoreAuthGroup.php
496 字节
<?php
namespace app\school\model;
use think\Model;
class ManystoreAuthGroup extends Model
{
// 开启自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = 'updatetime';
const SCHOOL = 0; //校级角色
const COLLAGE = 1; // 院级角色
const TEACHER = 2; //教师
public function getNameAttr($value, $data)
{
return __($value);
}
}