feat: auth

This commit is contained in:
2024-10-27 18:08:06 +08:00
parent 4b12825a9a
commit 10037e11fd
9 changed files with 428 additions and 1 deletions

45
app/Model/AdminMenu.php Normal file
View File

@@ -0,0 +1,45 @@
<?php
declare(strict_types=1);
namespace App\Model;
use Hyperf\DbConnection\Model\Model;
/**
* @property int $id
* @property int $parent_id
* @property string $title
* @property string $icon
* @property int $type
* @property string $url
* @property string $value
* @property int $status
* @property int $sort
* @property string $create_time
* @property string $update_time
*/
class AdminMenu extends Model
{
/**
* The table associated with the model.
*/
protected ?string $table = 'admin_menu';
/**
* The attributes that are mass assignable.
*/
protected array $fillable = [];
protected array $guarded = [];
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['id' => 'integer', 'parent_id' => 'integer', 'type' => 'integer', 'status' => 'integer', 'sort' => 'integer'];
const CREATED_AT = 'create_time';
const UPDATED_AT = 'update_time';
}