transform core api codes into this project, update modules as admin/pos context modules
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||
import { IsOptional, IsString } from 'class-validator'
|
||||
|
||||
export class CreateConfigDto {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
app_version: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
build_number: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
uuid: string
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
fcm_token?: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
platform: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
brand: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
model: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
device: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
os_version: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
sdk_version: string
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
release_number: string
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
browser_name: string
|
||||
}
|
||||
|
||||
export class UpdateConfigDto extends PartialType(CreateConfigDto) {}
|
||||
Reference in New Issue
Block a user