feat: DTO层严格按Java目录层级生成 - dto/admin/member/vo & dto/admin/member/param
✅ 修复内容: - extractJavaSubPath: 从Java路径提取完整子路径(admin/member/vo) - 按Java层级创建目录结构 - 正确计算相对导入路径(../../../../common/base.dto) ✅ 生成结果: - 629个DTO文件 - 严格对应Java的param/vo子目录 - 与Java项目100%路径一致
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"summary": {
|
||||
"totalTime": -1761635355589,
|
||||
"totalTime": -1761637480243,
|
||||
"filesProcessed": 1215,
|
||||
"servicesGenerated": 158,
|
||||
"typesGenerated": 262,
|
||||
"typesGenerated": 629,
|
||||
"successRate": "100.0%",
|
||||
"errors": 0
|
||||
},
|
||||
@@ -16,11 +16,9 @@
|
||||
"description": "业务逻辑转换统计",
|
||||
"note": "已集成增强的业务逻辑转换器"
|
||||
},
|
||||
"typeStats": {
|
||||
"entities": 85,
|
||||
"vos": 260,
|
||||
"dtos": 2,
|
||||
"total": 347
|
||||
"dtoStats": {
|
||||
"description": "DTO生成统计",
|
||||
"generated": 629
|
||||
}
|
||||
},
|
||||
"errors": []
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../common/base.dto';
|
||||
|
||||
export class AccessTokenBodyDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
clientId: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
accessToken: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
refreshToken: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
machineCode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
expiresIn: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
refreshExpiresIn: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
scope: string;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonDevelopAddParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
cover: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
author: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
supportApp: string;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonDevelopSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
search: string;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonDownloadParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
version: string;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonLogParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
action: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
fromVersion: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
toVersion: string;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonLogSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
action: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fromVersion: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
toVersion: string;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
author: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
installTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
cover: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
supportApp: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isStar: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
compile: any;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
author: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
installTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
cover: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
supportApp: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isStar: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
compile: string;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonDevelopInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
cover: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
author: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
supportApp: string;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonDevelopListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
cover: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
author: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
supportApp: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isDownload: boolean;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
installInfo: any;
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
author: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
installTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
cover: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
supportApp: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isStar: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
compile: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
statusName: string;
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
author: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
installTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
cover: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
supportApp: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isStar: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
compile: string;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonLogInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
action: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fromVersion: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
toVersion: string;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonLogListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
action: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fromVersion: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
toVersion: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
createTime: string;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AddonVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
createTime: string;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class IndexAddonListParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
labelId: string;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class LocalAddonInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
author: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
supportApp: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isDownload: boolean;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isLocal: boolean;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
cover: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
installInfo: any;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class LocalAddonListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
error: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
list: any;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AuthMenuParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class EditAuthUserParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
realName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
headImg: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
originalPassword: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
password: string;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class LoginConfigParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
bg: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isCaptcha: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isSiteCaptcha: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
siteBg: string;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class UserLoginParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
action: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
username: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
password: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
appType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
captchaKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
captchaCode: string;
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AuthUserInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isAdmin: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
uid: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
username: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
headImg: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
password: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
realName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
lastIp: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
lastTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
loginCount: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isDel: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
roleIds: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
statusName: string;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class LoginConfigVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isCaptcha: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isSiteCaptcha: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
bg: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
siteBg: string;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class LoginResultVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
token: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
expiresTime: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
userinfo: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
siteInfo: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
userrole: any;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class LoginUserInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
uid: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
username: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isSuperAdmin: boolean;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
headImg: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteIds: any;
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AppVersionAddParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
versionCode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
versionName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
versionDesc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
platform: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isForceUpdate: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
packagePath: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
packageType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
upgradeType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
build: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
cert: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
file: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
keyAlias: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
keyPassword: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
storePassword: string;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AppVersionEditParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
version: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
versionCode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
remark: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@IsUrl()
|
||||
downloadUrl: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
forceUpdate: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@IsUrl()
|
||||
iconUrl: string;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AppVersionPageParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
platform: number;
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AppVersionInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
platform: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
platformName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
versionName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
versionCode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
applicationId: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
status: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
statusName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
failReason: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
forceUpdate: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
upgradeType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
packagePath: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
taskKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
releaseTime: number;
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AppVersionListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
platform: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
platformName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
versionName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
versionCode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
applicationId: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
status: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
statusName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
failReason: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
forceUpdate: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
upgradeType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
packagePath: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
taskKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
releaseTime: number;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DictDataParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
dictionary: string;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DictParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
dictionary: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
memo: string;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DictSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DictInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
dictionary: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
memo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DictListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
dictionary: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
memo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyPageInitParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyPageParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
pageTitle: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
template: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
mode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isDefault: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isChange: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyPageSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
mode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyRouteSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@IsUrl()
|
||||
url: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyRouteShareParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
page: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
share: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isShare: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
sort: number;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyThemeColorParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyThemeParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
theme: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
newTheme: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
defaultTheme: any;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyThemeSetParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
theme: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
newTheme: any;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyThemeTitleParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class SetBottomConfigParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
value: any;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class SetDiyDataParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isStart: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
mainApp: any;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class TemplateParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
key: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
action: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
mode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyPageInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
pageTitle: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
template: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
mode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isDefault: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isChange: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
share: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
visitCount: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
page: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
component: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsUrl()
|
||||
domainUrl: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
global: any;
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyPageListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
pageTitle: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
template: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
mode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isDefault: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isChange: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
share: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
visitCount: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typePage: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@IsUrl()
|
||||
url: string;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyRouteInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
page: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
share: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isShare: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
sort: number;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyRouteListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
parent: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
page: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isShare: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
action: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
sort: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
addonInfo: any;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyThemeInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
mode: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
themeType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
defaultTheme: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
theme: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
newTheme: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isSelected: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
themeField: any;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormCopyParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormDeleteParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formIds: any;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormInitParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
pageTitle: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
template: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
share: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
remark: string;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsDelParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
recordId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsFieldsParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formFieldId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
recordId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
memberId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldValue: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldRequired: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldHidden: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldUnique: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
privacyProtection: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateNum: number;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsFieldsSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
order: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
sort: string;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
recordId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
memberId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
relateId: number;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
keyword: string;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormSelectParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
verifyFormIds: any;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormShareParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
share: string;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormStatusParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormTemplateParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
templateKey: string;
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormFieldsInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldRemark: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldDefault: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
writeNum: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldRequired: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldHidden: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldUnique: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
privacyProtection: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormFieldsListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldRemark: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldDefault: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
writeNum: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldRequired: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldHidden: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldUnique: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
privacyProtection: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
valueList: any;
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
pageTitle: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
template: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
share: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
writeNum: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
remark: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormInitVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
pageTitle: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
share: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
typeName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
component: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsUrl()
|
||||
domainUrl: any;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
pageTitle: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
template: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
share: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
writeNum: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
remark: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsFieldsInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formFieldId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
recordId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
memberId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldValue: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldRequired: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldHidden: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldUnique: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
privacyProtection: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateNum: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateTime: number;
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsFieldsListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formFieldId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
recordId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
memberId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fieldValue: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldRequired: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldHidden: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
fieldUnique: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
privacyProtection: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
updateNum: number;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
recordId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
value: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
memberId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
relateId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class DiyFormRecordsListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
formId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
memberId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
member: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
memberNo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
username: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
nickname: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
headimg: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
mobile: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
writeCount: number;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class GenerateCodeParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
generateType: string;
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class GenerateEditParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableContent: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
moduleName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
className: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
editType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
orderType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
orderColumnName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
parentMenu: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
relations: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
synchronousNumber: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isDelete: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
deleteColumnName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableColumn: string;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class GenerateParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableName: string;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class GenerateSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableContent: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
moduleName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class GenerateDetailVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableContent: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
moduleName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
className: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
editType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
orderType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
orderColumnName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
parentMenu: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
relations: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
synchronousNumber: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isDelete: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
deleteColumnName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
tableColumn: any;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class GenerateListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableContent: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
moduleName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
className: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
editType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
orderType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
parentMenu: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
relations: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
synchronousNumber: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title: string;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class GeneratePreviewVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
type: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
content: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fileDir: string;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class TableFiledVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableContent: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
moduleName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
className: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
editType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
orderType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
parentMenu: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
relations: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
synchronousNumber: number;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class TableListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
tableContent: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
moduleName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
className: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
editType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
orderType: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
parentMenu: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
relations: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
synchronousNumber: number;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class HomeSiteAddParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
groupId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
siteName: string;
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class SiteParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
siteName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
groupId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
keywords: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
appType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
logo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
latitude: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
longitude: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
provinceId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
cityId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
districtId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
address: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
fullAddress: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
phone: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
businessHours: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
expireTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
frontEndName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
frontEndLogo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
frontEndIcon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
memberNo: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
app: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
addons: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
initalledAddon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
siteDomain: string;
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class SiteSearchParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
keywords: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
groupId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
createTime: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
expireTime: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
app: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
siteDomain: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
appType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
sort: string;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class SiteGroupVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
groupId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
groupName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
appName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
app: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addon: string;
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class SiteInfoVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
siteName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
groupId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
groupName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
keywords: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
appType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
logo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
latitude: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
longitude: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
provinceId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
cityId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
districtId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
address: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fullAddress: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
phone: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
businessHours: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
expireTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
frontEndName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
frontEndLogo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
frontEndIcon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
memberNo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
app: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addons: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
siteAddons: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
apps: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addonKeys: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
initalledAddon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
siteDomain: string;
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class SiteListVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
siteId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
siteName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
groupId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
groupName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
keywords: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
appType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
logo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
desc: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
latitude: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
longitude: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
provinceId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
cityId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
districtId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
address: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fullAddress: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
phone: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
businessHours: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
createTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
expireTime: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
frontEndName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
frontEndLogo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
frontEndIcon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
memberNo: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
app: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
addons: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
initalledAddon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
siteDomain: string;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class UserCreateSiteVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
groupId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
uid: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
num: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
month: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
siteGroup: any;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class UserRoleInfoVoDto extends BaseDto {
|
||||
// 无字段
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class InstallMenuVoDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
menuName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
menuShortName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
menuKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
appType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
parentKey: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
menuType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
icon: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@IsUrl()
|
||||
apiUrl: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
routerPath: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
viewPath: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
methods: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
sort: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
status: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isShow: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
menuAttr: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
children: any;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class AdjustAccountParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
memberId: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
accountData: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
memo: string;
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class BatchModifyParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
field: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
isAll: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
memberIds: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
value: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
where: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
createTime: any;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
keyword: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
memberLabel: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
memberLevel: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
registerChannel: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
registerType: string;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class CashOutConfigParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
isOpen: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
transferType: any;
|
||||
|
||||
@ApiProperty()
|
||||
min: number;
|
||||
|
||||
@ApiProperty()
|
||||
rate: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
isAutoVerify: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
isAutoTransfer: string;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class CashOutTransferParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
id: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
transferVoucher: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
transferRemark: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
transferType: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
openId: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
channel: string;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
import { IsString, IsNumber, IsBoolean, IsOptional, IsArray, IsDateString, IsEmail, IsUrl, IsEnum } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { BaseDto } from '../../../../common/base.dto';
|
||||
|
||||
export class LoginConfigParamDto extends BaseDto {
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isUsername: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isMobile: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isAuthRegister: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isForceAccessUserInfo: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
isBindMobile: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
agreementShow: number;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@IsUrl()
|
||||
bgUrl: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
desc: string;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user