File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/main/kotlin/com/msg/gauth/domain/user/presentation/dto/response Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
package com.msg.gauth.domain.user.presentation.dto.response
2
2
3
+ import com.fasterxml.jackson.annotation.JsonCreator
4
+ import com.fasterxml.jackson.annotation.JsonProperty
3
5
import com.msg.gauth.domain.user.User
4
6
5
- data class SingleAcceptedUserResDto (
6
- val id : Long ,
7
- val name : String ,
8
- val email : String ,
9
- val grade : Int? ,
10
- val classNum : Int? ,
11
- val num : Int? ,
12
- val profileUrl : String?
7
+ data class SingleAcceptedUserResDto @JsonCreator constructor (
8
+ @JsonProperty( " id " ) val id : Long ,
9
+ @JsonProperty( " name " ) val name : String ,
10
+ @JsonProperty( " email " ) val email : String ,
11
+ @JsonProperty( " grade " ) val grade : Int? ,
12
+ @JsonProperty( " classNum " ) val classNum : Int? ,
13
+ @JsonProperty( " num " ) val num : Int? ,
14
+ @JsonProperty( " profileUrl " ) val profileUrl : String?
13
15
) {
14
16
15
17
constructor (user: User ) : this (
You can’t perform that action at this time.
0 commit comments