更新功能
This commit is contained in:
@@ -12,10 +12,9 @@ namespace app\model;
|
||||
/**
|
||||
* 设置模型
|
||||
*/
|
||||
class ContentModel {
|
||||
class Content extends Model {
|
||||
|
||||
protected $auto = ['update_time'];
|
||||
protected $insert = ['create_time', 'status' => 1];
|
||||
|
||||
protected $type = array(
|
||||
'create_time' => 'integer',
|
||||
'update_time' => 'integer',
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user