Coder
2 years ago
22 changed files with 271 additions and 26 deletions
@ -1,10 +1,21 @@
@@ -1,10 +1,21 @@
|
||||
import { IpDto } from 'src/core/dto' |
||||
import { DtoProperty } from 'src/shared' |
||||
|
||||
export class IPShortDataDto { |
||||
@DtoProperty() |
||||
id: number |
||||
|
||||
@DtoProperty() |
||||
ip: string |
||||
} |
||||
|
||||
export class IpsPaginatedResponseDto { |
||||
@DtoProperty({ isArray: true, type: IpDto }) |
||||
items: IpDto[] |
||||
|
||||
@DtoProperty() |
||||
count: number |
||||
|
||||
@DtoProperty({ isArray: true, type: IPShortDataDto }) |
||||
data: IPShortDataDto[] |
||||
} |
||||
|
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
import { DtoProperty } from 'src/shared' |
||||
|
||||
export class RemoveIpsDto { |
||||
@DtoProperty({ isArray: true, type: String }) |
||||
ips: string[] |
||||
} |
Loading…
Reference in new issue