初始化本地仓库

This commit is contained in:
2026-08-31 11:33:59 +08:00
commit 663f74b633
2390 changed files with 402918 additions and 0 deletions
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace app\adminapi\schema\request\profile;
use OpenApi\Attributes as OA;
#[OA\Schema(
title: '头像更新请求',
description: '更新当前登录用户的头像'
)]
final class AvatarUpdateRequest
{
#[OA\Property(
property: 'avatar',
description: '头像 URL 或 Base64 编码',
type: 'string',
example: '/upload/avatar.jpg'
)]
public string $avatar;
}
@@ -0,0 +1,44 @@
<?php
declare(strict_types=1);
namespace app\adminapi\schema\request\profile;
use OpenApi\Attributes as OA;
#[OA\Schema(
title: '密码修改请求',
description: '修改当前登录用户的密码'
)]
final class PasswordUpdateRequest
{
#[OA\Property(
property: 'old_password',
description: '当前密码',
type: 'string',
minLength: 6,
maxLength: 20,
example: 'old123456'
)]
public string $old_password;
#[OA\Property(
property: 'new_password',
description: '新密码',
type: 'string',
minLength: 6,
maxLength: 20,
example: 'new123456'
)]
public string $new_password;
#[OA\Property(
property: 'confirm_password',
description: '确认新密码',
type: 'string',
minLength: 6,
maxLength: 20,
example: 'new123456'
)]
public string $confirm_password;
}
@@ -0,0 +1,79 @@
<?php
declare(strict_types=1);
namespace app\adminapi\schema\request\profile;
use OpenApi\Attributes as OA;
#[OA\Schema(
title: '个人信息更新请求',
description: '更新当前登录用户的个人信息'
)]
final class ProfileUpdateRequest
{
#[OA\Property(
property: 'real_name',
description: '真实姓名',
type: 'string',
minLength: 2,
maxLength: 50,
example: '张三'
)]
public string $real_name;
#[OA\Property(
property: 'nick_name',
description: '昵称',
type: 'string',
minLength: 2,
maxLength: 30,
example: '小明'
)]
public string $nick_name;
#[OA\Property(
property: 'email',
description: '邮箱',
type: 'string',
format: 'email',
example: 'user@example.com'
)]
public string $email;
#[OA\Property(
property: 'mobile_phone',
description: '手机号码',
type: 'string',
pattern: '^1[3-9]\\d{9}$',
example: '13800138000'
)]
public string $mobile_phone;
#[OA\Property(
property: 'sex',
description: '性别:0=未知,1=男,2=女',
type: 'integer',
enum: [0, 1, 2],
example: 1
)]
public int $sex;
#[OA\Property(
property: 'signed',
description: '个人签名',
type: 'string',
nullable: true,
example: '专注于用户体验设计'
)]
public ?string $signed;
#[OA\Property(
property: 'address',
description: '地址',
type: 'string',
nullable: true,
example: '北京市朝阳区'
)]
public ?string $address;
}