优化路由模块

This commit is contained in:
2026-02-04 11:33:53 +08:00
parent 85e52cea87
commit 7826025d42
9 changed files with 397 additions and 114 deletions
+45
View File
@@ -0,0 +1,45 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace app\model;
use think\Model;
use think\model\concern\SoftDelete;
/**
* 文章分类模型
*/
class AppsBabys extends Model
{
// 启用软删除
use SoftDelete;
// 数据库表名
protected $name = 'mete_apps_babys';
// 字段类型转换
protected $type = [
'id' => 'integer',
'name' => 'string',
'nickname' => 'string',
'sex' => 'integer',
'birth' => 'date',
'height' => 'double',
'weight' => 'double',
'avatar' => 'string',
'status' => 'integer',
'create_time' => 'datetime',
'update_time' => 'datetime',
'delete_time' => 'datetime',
];
}