初始化本地仓库
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user