Skip to content

Commit 943dae4

Browse files
committed
hotfix: 레주메 유저 식별 아이디 변경
1 parent d99af3a commit 943dae4

File tree

9 files changed

+17
-26
lines changed

9 files changed

+17
-26
lines changed

src/main/java/com/repo/whopper/WhopperApplication.java renamed to src/main/java/com/repo/whopper/Application.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
import org.springframework.cloud.openfeign.EnableFeignClients;
88
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
99

10+
@EnableFeignClients
1011
@SpringBootApplication
1112
@ConfigurationPropertiesScan
12-
@EnableFeignClients
1313
@ImportAutoConfiguration({FeignAutoConfiguration.class})
14-
public class WhopperApplication {
15-
public static void main(String[] args) {
16-
SpringApplication.run(WhopperApplication.class, args);
14+
class Application {
15+
16+
public static void main(final String[] args) {
17+
SpringApplication.run(
18+
Application.class,
19+
args
20+
);
1721
}
22+
1823
}

src/main/java/com/repo/whopper/application/auth/service/StudentLoginService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private TokenResponse registerAndLoginNewStudent(LoginRequest request) {
7373
final var newStudent = createAndSaveNewStudent(xquareUserResponse);
7474

7575
createResumeComponent.create(newStudent);
76-
return getTokenResponse(newStudent.id());
76+
return getTokenResponse(newStudent.accountId());
7777
}
7878

7979
private TokenResponse getTokenResponse(String id) {

src/main/java/com/repo/whopper/domain/history/HistoryEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@Getter
99
@Document("history_repo")
1010
@AllArgsConstructor(access = AccessLevel.PACKAGE)
11-
class HistoryEntity {
11+
class HistoryEntity { // TODO: 3/18/25 복구 가능 PDF에 내용 있음
1212
@Id
1313
private String id;
1414
private String date;

src/main/java/com/repo/whopper/domain/resume/ResumeEntity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.springframework.data.mongodb.core.mapping.Document;
99

1010
import java.util.List;
11-
import java.util.Set;
1211

1312
@Getter
1413
@Builder
@@ -81,7 +80,7 @@ enum Type {
8180
}
8281

8382
record Writer(
84-
String id,
83+
String accountId, //todo 현재 유저 고유 아이디 저장 중 -> 변경후 -> 유저
8584
String name,
8685
SchoolInfo schoolInfo,
8786
String major,

src/main/java/com/repo/whopper/domain/resume/ResumeModelFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static ResumeModel createResumeModelFromStudentEntity(StudentModel studen
1010
var classInfo = student.classInfo();
1111

1212
return ResumeModel.createInitialResume(
13-
student.id(),
13+
student.accountId(),
1414
student.name(),
1515
new ResumeElementDto.Writer.SchoolInfo(
1616
classInfo.grade(),

src/main/java/com/repo/whopper/domain/student/StudentEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class StudentEntity {
1414
@Id
1515
private String id;
1616
private String accountId;
17-
private String password;
17+
// private String password;
1818
private String name;
1919
private ClassInfo classInfo;
2020
private String profileImagePath;

src/main/java/com/repo/whopper/infrastructure/xquare/XquareClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@FeignClient(name = "xquare-client", url = "${key.login-api-url}", configuration = XquareRetryConfiguration.class)
99
public interface XquareClient {
1010
@PostMapping("/user-data")
11-
XquareUserResponse xquareUser(@RequestBody LoginRequest request);
11+
XquareUserResponse xquareUser(@RequestBody LoginRequest request); // TODO: 3/18/25 200 -> login 성공
1212

1313
@PatchMapping("/modify-profile")
1414
void modifyProfile(@RequestParam("account_id") String account_id, @RequestParam("profile_img_url") String profileImgUrl);

src/main/java/com/repo/whopper/interfaces/resume/dto/ResumeElementDto.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public enum Status {
2020
}
2121

2222
public record Writer(
23-
String id,
23+
String accountId,
2424
String name,
2525
SchoolInfo schoolInfo,
2626
String major,
@@ -29,7 +29,7 @@ public record Writer(
2929
String url
3030
) {
3131
public Writer update(String major, String email, List<String> skillSet, String url) {
32-
return new Writer(id, name, schoolInfo, major, email, skillSet, url);
32+
return new Writer(accountId, name, schoolInfo, major, email, skillSet, url);
3333
}
3434

3535
public record SchoolInfo(

src/test/java/com/repo/whopper/WhopperApplicationTests.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)