feat: 添加用户分页/详情/新增/更新/删除接口

This commit is contained in:
2025-02-25 17:03:11 +08:00
parent 397008c9fe
commit 99e7b95935
9 changed files with 338 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ class CreateSysUser extends Migrator
->addColumn('role_id', 'integer', ['limit' => 11, 'null' => false, 'comment' => '角色ID'])
->addColumn('nickname', 'string', ['limit' => 64, 'null' => false, 'comment' => '昵称'])
->addColumn('avatar', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '头像'])
->addColumn('mobile', 'biginteger', ['limit' => 11, 'null' => true, 'default' => null, 'comment' => '手机号码'])
->addColumn('mobile', 'string', ['limit' => 11, 'null' => true, 'default' => null, 'comment' => '手机号码'])
->addColumn('email', 'string', ['limit' => 128, 'null' => true, 'default' => null, 'comment' => '邮箱地址'])
->addColumn('status', 'boolean', ['null' => false, 'default' => 1, 'comment' => '-1为禁用, 1为启用'])
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])