liuyun f516e98f7f feat: list search filters for user/config/role/audit-log/login-log
- user/config/role/audit-log/login-log 列表增加搜索过滤(ListXxxQuery)
- audit-logs/login-logs 新增 dto + listXxx 方法

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 12:46:10 +08:00

16 lines
447 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional, IsString } from 'class-validator';
import { PageQuery } from '../common/page.dto.js';
export class ListLoginLogQuery extends PageQuery {
@ApiPropertyOptional({ description: '用户名(模糊)' })
@IsOptional()
@IsString()
username?: string;
@ApiPropertyOptional({ description: '状态:success/fail' })
@IsOptional()
@IsString()
status?: string;
}