File size: 610 Bytes
da50ce9
a99a515
 
 
 
da50ce9
a99a515
 
 
da50ce9
a99a515
 
 
da50ce9
a99a515
 
 
da50ce9
 
 
a99a515
 
 
da50ce9
a99a515
 
 
da50ce9
a99a515
da50ce9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { SwaggerResponseProperty } from "@lib/decorators/swagger-response-property.decorator";
import { Expose, Transform } from "class-transformer";

export class AdminSerialization {
  @Expose({ name: "_id" })
  @SwaggerResponseProperty("string")
  id: string;

  @Expose()
  @SwaggerResponseProperty("string")
  name: string;

  @Expose()
  @SwaggerResponseProperty("string")
  email: string;

  @Expose()
  @SwaggerResponseProperty({
    type: {},
  })
  image: object;

  @Expose()
  @SwaggerResponseProperty("string")
  role: string;

  @Expose()
  @SwaggerResponseProperty("string")
  gender: string;
}