POST /api/join?_csrf=PgIVII1UGSy-VgyBIBIGTa1dWM46uJ4ZGHdIY9I6EJszZnmjBjchRr0yfBuTYW7nRD8yeJw7da9cjq80KUQrUeQNKaJSBUzC HTTP/1.1
+POST /api/join?_csrf=bqhELrQg8rMlPCHc5hRoR90wycusUS5HCAHl66JUF6RF1V6CCMl1FtBCw4IICRK40TlccrxR5KrONRdqbDGE3ZM2dMJx7Gy6 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 75
Host: localhost:8080
@@ -606,7 +606,7 @@ 요청
HTTP request
-POST /api/join?_csrf=W-QQiuAMvzJ8R4RLrtawe4gwfv9ZPmY3wgmrj27vemXqocL4aNYm7tE9jFdRJuUvmPuEHexWU8dvWl4a-znOtwyNTVDTxKGd HTTP/1.1
+POST /api/join?_csrf=OQwBqMC9Zq0gPljoFGTxo3gZ9odv-9Dxw4nTIlcrtmj-QzUQWz40zaaJV88NWmnZLEnFm0sh2-ZeybXcobjnQDVIhgyaIgFz HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 75
Host: localhost:8080
@@ -722,14 +722,15 @@ 요청
HTTP request
-POST /api/member?_csrf=kmlxlZyRuwrIyGn0zbMmqnILmlAemcnMXx2Qn0BYNeNE5msYqgpE9q2ki2zl-1rB_p4Smhc7t2kprv7hZiz0pnRsVIV0hVJ8 HTTP/1.1
+POST /api/member?_csrf=BWhNzdUUTn22CwSqrR5lQ7yf8jmjMNmiC9VL6452FVcMQPaXNQwpr-QseEybM2adnzNRcYim3wHCUu-Pb7cojrtOJG80I8L1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
-Content-Length: 246
+Content-Length: 271
Host: localhost:8080
{
"username" : "testId",
"age" : 70,
+ "location" : "서울",
"mainExperience" : "OFFICE_ACCOUNTING_IT",
"subExperience" : "ACCOUNTING_FINANCE",
"mainPreference" : "OFFICE_ACCOUNTING_IT",
@@ -766,6 +767,11 @@ Request fields
나이
+location
+String
+사는 곳
+
+
mainExperience
String
일 경험 (대분류)
@@ -862,14 +868,15 @@ 요청
HTTP request
-POST /api/member?_csrf=23Cny2COxXGIMijWKGtj-mXdNUI13SxniQulHeXvQME_TJ0p4kmT-lbrp0WlUR3lTEZXy13rGHsA5RlK6miReIaNdPUHL6RK HTTP/1.1
+POST /api/member?_csrf=TwYTRFEJo6f4F80Cw0vd-QJfs-x2UO18aFi_uSChCqqLYCQqLWVxIDI-wpbVdq9mpWbpyDZuno1PaIlRXG-KiRDAO5y-VxEb HTTP/1.1
Content-Type: application/json;charset=UTF-8
-Content-Length: 246
+Content-Length: 271
Host: localhost:8080
{
"username" : "testId",
"age" : 70,
+ "location" : "서울",
"mainExperience" : "OFFICE_ACCOUNTING_IT",
"subExperience" : "ACCOUNTING_FINANCE",
"mainPreference" : "OFFICE_ACCOUNTING_IT",
@@ -906,6 +913,11 @@ Request fields
나이
+location
+String
+사는 곳
+
+
mainExperience
String
일 경험 (대분류)
@@ -1517,7 +1529,7 @@ 요청
HTTP request
-PATCH /api/credits/plus?_csrf=qmt_Za8wsOh3pBq84WDkNp731oPvmLzVTO5mr8Dx5RfiDEDKz1JNVJxShthanSLZ2U3QAa7F-7rcoYz4ddheyvXB0SSEOyPy HTTP/1.1
+PATCH /api/credits/plus?_csrf=QbEDpbZd4ASyJ6pIeBMxr8zgRCYmIBhWvh5p_XdvTQfPqO9TdNVik9Rt12WfQZorST4Fy66FaUcUQ3p7iHsPzUBcf2T2mNY2 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 47
Host: localhost:8080
@@ -1640,7 +1652,7 @@ 요청
HTTP request
-PATCH /api/credits/minus?_csrf=p3QgOoesv8lpAyBdnDtNeGxiJbc16bjauYGOLlwM5weJ3Ic4nkJFDLaZ3KtEYkFlqRZ5HFlWCNUN3933gbG4T2xq3jG-7bEO HTTP/1.1
+PATCH /api/credits/minus?_csrf=EPL_pCkP5EtZpHW_WmNLGCghJe8MK2JqzufU2LtTiLOBLKMJdJeclho9hXJ0xxHaaE5_ek5CCI1qGVNH-dOw4dgyu4u1TZtt HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 47
Host: localhost:8080
@@ -1809,7 +1821,7 @@ HTTP response
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
-Content-Length: 833
+Content-Length: 1025
{
"success" : true,
@@ -1819,20 +1831,26 @@ HTTP response
"workName" : "경비",
"workDetail" : "병원을 경비합니다.",
"workCredit" : 10000,
+ "location" : "서울",
"mainCategory" : "SERVICE",
- "subCategory" : "SECURITY_GUARD"
+ "subCategory" : "SECURITY_GUARD",
+ "physicalStatus" : "NORMAL"
}, {
"workName" : "주간경비",
"workDetail" : "병원을 주간에 경비합니다.",
"workCredit" : 11000,
+ "location" : "서울",
"mainCategory" : "SERVICE",
- "subCategory" : "SECURITY_GUARD"
+ "subCategory" : "SECURITY_GUARD",
+ "physicalStatus" : "NORMAL"
}, {
"workName" : "야간경비",
"workDetail" : "병원을 야간에 경비합니다.",
"workCredit" : 12000,
+ "location" : "서울",
"mainCategory" : "SERVICE",
- "subCategory" : "SECURITY_GUARD"
+ "subCategory" : "SECURITY_GUARD",
+ "physicalStatus" : "NORMAL"
} ],
"pageNum" : 0,
"pageSize" : 0,
@@ -1891,6 +1909,16 @@ Response fields
소일거리 시급
+data.content[].location
+String
+소일거리 위치
+
+
+data.content[].physicalStatus
+String
+소일거리 건강상태
+
+
data.content[].mainCategory
String
소일거리 메인카테고리
@@ -1980,7 +2008,7 @@ HTTP response
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
-Content-Length: 277
+Content-Length: 337
{
"success" : true,
@@ -1989,8 +2017,10 @@ HTTP response
"workName" : "경비",
"workDetail" : "병원을 경비합니다.",
"workCredit" : 10000,
+ "location" : "서울",
"mainCategory" : "SERVICE",
- "subCategory" : "SECURITY_GUARD"
+ "subCategory" : "SECURITY_GUARD",
+ "physicalStatus" : "NORMAL"
}
}
@@ -2043,6 +2073,16 @@ Response fields
소일거리 시급
+data.location
+String
+소일거리 위치
+
+
+data.physicalStatus
+String
+소일거리 건강상태
+
+
data.mainCategory
String
소일거리 메인카테고리
@@ -2065,7 +2105,7 @@ 요청
HTTP request
-POST /api/works-join?_csrf=VfS28BzkEMe7ffCLHNMv4hLSGkSzyV528VPtXQigV_4EjobsZMOHliiGJ_CWTcm6JP4bh3bjN32C8TpbxWLVZGyQZs5m6LDY HTTP/1.1
+POST /api/works-join?_csrf=le1PZX052-Z25fmXFhLnnWHpTbPWbjmbh1T3T-MS7WTvBQ15rdV7VEQLvdBb1pqlcD_TrwLaYNG1CAu25DKVd9px3FHeND1N HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 44
Host: localhost:8080
diff --git a/src/test/java/workplate/workplateserver/auth/controller/MemberControllerTest.java b/src/test/java/workplate/workplateserver/auth/controller/MemberControllerTest.java
index e46b643..635ca33 100644
--- a/src/test/java/workplate/workplateserver/auth/controller/MemberControllerTest.java
+++ b/src/test/java/workplate/workplateserver/auth/controller/MemberControllerTest.java
@@ -141,7 +141,7 @@ void joinFailTest() throws Exception {
@WithMockUser
void addDetailTest() throws Exception {
// Given
- MemberDetailRequest request = new MemberDetailRequest("testId", 70, MainExperience.OFFICE_ACCOUNTING_IT,
+ MemberDetailRequest request = new MemberDetailRequest("testId", 70, "서울", MainExperience.OFFICE_ACCOUNTING_IT,
SubExperience.ACCOUNTING_FINANCE, MainExperience.OFFICE_ACCOUNTING_IT, SubExperience.ACCOUNTING_FINANCE,
PhysicalStatus.NORMAL);
@@ -165,6 +165,7 @@ void addDetailTest() throws Exception {
requestFields(
fieldWithPath("username").description("가입한 아이디"),
fieldWithPath("age").description("나이"),
+ fieldWithPath("location").description("사는 곳"),
fieldWithPath("mainExperience").description("일 경험 (대분류)"),
fieldWithPath("subExperience").description("일 경험 (소분류)"),
fieldWithPath("mainPreference").description("선호 직종 (대분류)"),
@@ -185,7 +186,7 @@ void addDetailTest() throws Exception {
@WithMockUser
void addDetailFailTest() throws Exception {
// Given
- MemberDetailRequest request = new MemberDetailRequest("testId", 70, MainExperience.OFFICE_ACCOUNTING_IT,
+ MemberDetailRequest request = new MemberDetailRequest("testId", 70, "서울", MainExperience.OFFICE_ACCOUNTING_IT,
SubExperience.ACCOUNTING_FINANCE, MainExperience.OFFICE_ACCOUNTING_IT, SubExperience.ACCOUNTING_FINANCE,
PhysicalStatus.NORMAL);
doThrow(new UsernameNotFoundException("회원정보를 찾을 수 없습니다.")).when(memberService).saveDetails(any());
@@ -210,6 +211,7 @@ void addDetailFailTest() throws Exception {
requestFields(
fieldWithPath("username").description("가입한 아이디"),
fieldWithPath("age").description("나이"),
+ fieldWithPath("location").description("사는 곳"),
fieldWithPath("mainExperience").description("일 경험 (대분류)"),
fieldWithPath("subExperience").description("일 경험 (소분류)"),
fieldWithPath("mainPreference").description("선호 직종 (대분류)"),
diff --git a/src/test/java/workplate/workplateserver/auth/repository/MemberDetailRepositoryTest.java b/src/test/java/workplate/workplateserver/auth/repository/MemberDetailRepositoryTest.java
index 8767836..8ecd4b4 100644
--- a/src/test/java/workplate/workplateserver/auth/repository/MemberDetailRepositoryTest.java
+++ b/src/test/java/workplate/workplateserver/auth/repository/MemberDetailRepositoryTest.java
@@ -37,7 +37,7 @@ class MemberDetailRepositoryTest {
@DisplayName("회원 상세정보 저장 테스트")
void saveTest() {
// Given
- MemberDetailRequest request = new MemberDetailRequest("testId", 70, MainExperience.OFFICE_ACCOUNTING_IT,
+ MemberDetailRequest request = new MemberDetailRequest("testId", 70, "서울", MainExperience.OFFICE_ACCOUNTING_IT,
SubExperience.ACCOUNTING_FINANCE, MainExperience.OFFICE_ACCOUNTING_IT, SubExperience.ACCOUNTING_FINANCE,
PhysicalStatus.NORMAL);
MemberDetail md = MemberDetail.toEntity(member, request);
@@ -59,7 +59,7 @@ void saveTest() {
@DisplayName("회원 상세정보 삭제 테스트")
void deleteTest() {
// Given
- MemberDetailRequest request = new MemberDetailRequest("testId", 70, MainExperience.OFFICE_ACCOUNTING_IT,
+ MemberDetailRequest request = new MemberDetailRequest("testId", 70, "서울", MainExperience.OFFICE_ACCOUNTING_IT,
SubExperience.ACCOUNTING_FINANCE, MainExperience.OFFICE_ACCOUNTING_IT, SubExperience.ACCOUNTING_FINANCE,
PhysicalStatus.NORMAL);
MemberDetail md = MemberDetail.toEntity(member, request);
diff --git a/src/test/java/workplate/workplateserver/auth/service/MemberServiceTest.java b/src/test/java/workplate/workplateserver/auth/service/MemberServiceTest.java
index 59688c7..2f6fb19 100644
--- a/src/test/java/workplate/workplateserver/auth/service/MemberServiceTest.java
+++ b/src/test/java/workplate/workplateserver/auth/service/MemberServiceTest.java
@@ -79,7 +79,7 @@ void saveMemberFailTest() {
@DisplayName("회원 상세정보 저장 테스트")
void saveDetailsTest() {
// Given
- MemberDetailRequest memberDetailRequest = new MemberDetailRequest("testId", 70, MainExperience.OFFICE_ACCOUNTING_IT,
+ MemberDetailRequest memberDetailRequest = new MemberDetailRequest("testId", 70, "서울", MainExperience.OFFICE_ACCOUNTING_IT,
SubExperience.ACCOUNTING_FINANCE, MainExperience.OFFICE_ACCOUNTING_IT, SubExperience.ACCOUNTING_FINANCE,
PhysicalStatus.NORMAL);
Member m = Member.toEntity("testId", "name", "pw");
@@ -97,7 +97,7 @@ void saveDetailsTest() {
@DisplayName("회원 상세정보 저장 실패 테스트")
void saveDetailsFailTest() {
// Given
- MemberDetailRequest memberDetailRequest = new MemberDetailRequest("testId", 70, MainExperience.OFFICE_ACCOUNTING_IT,
+ MemberDetailRequest memberDetailRequest = new MemberDetailRequest("testId", 70, "서울", MainExperience.OFFICE_ACCOUNTING_IT,
SubExperience.ACCOUNTING_FINANCE, MainExperience.OFFICE_ACCOUNTING_IT, SubExperience.ACCOUNTING_FINANCE,
PhysicalStatus.NORMAL);
Member m = Member.toEntity("testId", "name", "pw");