Commit e82b1e0 1 parent bb04bff commit e82b1e0 Copy full SHA for e82b1e0
File tree 3 files changed +6
-5
lines changed
src/main/java/com/sponus/sponusbe/domain/announcement/dto
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,15 @@ DELETE http://localhost:8080/api/v1/announcements/1
52
52
Authorization: Bearer {{matsterToken}}
53
53
54
54
### 공고 수정
55
- PATCH http://localhost:8080/api/v1/announcements/4
55
+ PATCH http://localhost:8080/api/v1/announcements/1
56
56
Authorization: Bearer {{matsterToken}}
57
57
Content-Type: application/json
58
58
59
59
{
60
60
"title" : " 스포너스 스폰서십" ,
61
61
"type" : " SPONSORSHIP" ,
62
62
"category" : " MARKETING" ,
63
- "content" : " 스포너스 스폰서십을 진행할 대학교 학생회를 모집합니다." ,
64
- "status" : " POSTED"
63
+ "content" : " 스포너스 스폰서십을 진행할 대학교 학생회를 모집합니다."
65
64
}
66
65
67
66
### 보고서 작성
Original file line number Diff line number Diff line change 1
1
package com .sponus .sponusbe .domain .announcement .dto .request ;
2
2
3
+ import static com .sponus .sponusbe .domain .announcement .entity .enums .AnnouncementStatus .*;
4
+
3
5
import com .sponus .sponusbe .domain .announcement .entity .Announcement ;
4
6
import com .sponus .sponusbe .domain .announcement .entity .enums .AnnouncementCategory ;
5
7
import com .sponus .sponusbe .domain .announcement .entity .enums .AnnouncementStatus ;
@@ -31,7 +33,7 @@ public Announcement toEntity(Organization writer) {
31
33
.type (type )
32
34
.category (category )
33
35
.content (content )
34
- .status (status )
36
+ .status (POSTED )
35
37
.build ();
36
38
}
37
39
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public static AnnouncementUpdateResponse from(Announcement announcement) {
26
26
.type (announcement .getType ())
27
27
.category (announcement .getCategory ())
28
28
.content (announcement .getContent ())
29
- .status (AnnouncementStatus . POSTED )
29
+ .status (announcement . getStatus () )
30
30
.viewCount (announcement .getViewCount ())
31
31
.build ();
32
32
}
You can’t perform that action at this time.
0 commit comments