-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
90 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/jikgong/domain/member/dtos/JoinCompanyRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package jikgong.domain.member.dtos; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jikgong.domain.member.entity.Role; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor | ||
@Getter | ||
public class JoinCompanyRequest { | ||
// 공통 정보 | ||
@Schema(description = "휴대폰 번호", example = "01012345678") | ||
private String phone; | ||
@Schema(description = "인증 코드 6자리", example = "") | ||
private String authCode; // 인증 코드 | ||
@Schema(description = "회원 타입 [ROLE_WORKER or ROLE_COMPANY]", example = "ROLE_COMPANY") | ||
private Role role; // 회원 타입 | ||
@Schema(description = "계좌 번호", example = "12341234123412") | ||
private String account; // 게좌 번호 | ||
@Schema(description = "은행 종류", example = "국민은행") | ||
private String bank; // 은행 | ||
|
||
// 회사 정보 | ||
@Schema(description = "사업자 번호", example = "00000000") | ||
private String businessNumber; // 사업자 번호 | ||
@Schema(description = "지역", example = "서울") | ||
private String region; // 지역 | ||
@Schema(description = "회사 명", example = "삼성") | ||
private String companyName; // 회사 명 | ||
@Schema(description = "이메일", example = "[email protected]") | ||
private String email; // 이메일 | ||
@Schema(description = "담당자 이름", example = "이재용") | ||
private String manager; // 담당자 이름 | ||
@Schema(description = "문의 내용", example = "직공 서비스에 가입하고 싶습니다.") | ||
private String requestContent; // 문의 내용 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
|
||
@NoArgsConstructor | ||
@Getter | ||
public class JoinRequest { | ||
public class JoinWorkerRequest { | ||
// 공통 정보 | ||
@Schema(description = "휴대폰 번호", example = "01012345678") | ||
private String phone; | ||
@Schema(description = "인증 코드 6자리", example = "") | ||
|
@@ -20,28 +21,6 @@ public class JoinRequest { | |
@Schema(description = "은행 종류", example = "국민은행") | ||
private String bank; // 은행 | ||
|
||
// 위치 정보 | ||
@Schema(description = "도로명 주소", example = "부산광역시 사하구 낙동대로 550번길 37") | ||
private String address; // 도로명 주소 | ||
@Schema(description = "위도", example = "35.116777388697734") | ||
private Float latitude; // 위도 | ||
@Schema(description = "경도", example = "128.9685393114043") | ||
private Float longitude; // 경도 | ||
|
||
// 회사 정보 | ||
@Schema(description = "사업자 번호", example = "00000000") | ||
private String businessNumber; // 사업자 번호 | ||
@Schema(description = "지역", example = "서울") | ||
private String region; // 지역 | ||
@Schema(description = "회사 명", example = "삼성") | ||
private String companyName; // 회사 명 | ||
@Schema(description = "이메일", example = "[email protected]") | ||
private String email; // 이메일 | ||
@Schema(description = "담당자 이름", example = "이재용") | ||
private String manager; // 담당자 이름 | ||
@Schema(description = "문의 내용", example = "직공 서비스에 가입하고 싶습니다.") | ||
private String requestContent; // 문의 내용 | ||
|
||
// 노동자 정보 | ||
@Schema(description = "노동자 이름", example = "홍길동") | ||
private String workerName; // 노동자 이름 | ||
|
@@ -51,4 +30,12 @@ public class JoinRequest { | |
private Gender gender; // 성별 | ||
@Schema(description = "국적", example = "대한민국") | ||
private String nationality; // 국적 | ||
|
||
// 위치 정보 | ||
@Schema(description = "도로명 주소", example = "부산광역시 사하구 낙동대로 550번길 37") | ||
private String address; // 도로명 주소 | ||
@Schema(description = "위도", example = "35.116777388697734") | ||
private Float latitude; // 위도 | ||
@Schema(description = "경도", example = "128.9685393114043") | ||
private Float longitude; // 경도 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters