Skip to content

Commit

Permalink
[FIX] request dto의 필드명이 snake_case로 받아와지도록 변경 #43
Browse files Browse the repository at this point in the history
  • Loading branch information
ddongseop committed Jul 15, 2023
1 parent 359f476 commit c5528c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package sopt.org.umbbaServer.domain.qna.controller.dto.request;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -8,6 +10,7 @@

@Getter
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class TodayAnswerRequestDto {

@NotBlank // null, "", " "을 모두 허용하지 X
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package sopt.org.umbbaServer.domain.user.controller.dto.request;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class RefreshRequestDto {

private Long userId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package sopt.org.umbbaServer.domain.user.controller.dto.request;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import sopt.org.umbbaServer.domain.user.social.SocialPlatform;

@Getter
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class SocialLoginRequestDto {

private SocialPlatform socialPlatform;
Expand Down

0 comments on commit c5528c3

Please sign in to comment.