更新功能

This commit is contained in:
2020-03-27 19:01:10 +08:00
parent 02b17e0da8
commit f239647c7c
10 changed files with 164 additions and 137 deletions

View File

@@ -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',
);
}