forked from InhaBas/Inhabas.com-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature/InhaBas#225] 회원관리 API 기능 추가 및 수정
[feature/InhaBas#225] 회원관리 API 기능 추가 및 수정
- Loading branch information
Showing
43 changed files
with
1,050 additions
and
400 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
2 changes: 1 addition & 1 deletion
2
...com/inhabas/api/auth/AuthBeansConfig.java → ...abas/api/auth/config/AuthBeansConfig.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.inhabas.api.auth; | ||
package com.inhabas.api.auth.config; | ||
|
||
import javax.sql.DataSource; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../com/inhabas/api/auth/AuthProperties.java → ...habas/api/auth/config/AuthProperties.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
2 changes: 1 addition & 1 deletion
2
.../inhabas/api/auth/AuthSecurityConfig.java → ...s/api/auth/config/AuthSecurityConfig.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.inhabas.api.auth; | ||
package com.inhabas.api.auth.config; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
|
36 changes: 36 additions & 0 deletions
36
module-auth/src/main/java/com/inhabas/api/auth/config/AwsSESConfig.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 com.inhabas.api.auth.config; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import com.amazonaws.auth.AWSStaticCredentialsProvider; | ||
import com.amazonaws.auth.BasicAWSCredentials; | ||
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService; | ||
import com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClientBuilder; | ||
|
||
@Configuration | ||
public class AwsSESConfig { | ||
|
||
@Value("${cloud.aws.ses.accessKey}") | ||
private String accessKey; | ||
|
||
@Value("${cloud.aws.ses.secretKey}") | ||
private String secretKey; | ||
|
||
@Value("${cloud.aws.region.static}") | ||
private String region; | ||
|
||
@Bean | ||
public AmazonSimpleEmailService amazonSimpleEmailService() { | ||
|
||
final BasicAWSCredentials basicAWSCredentials = new BasicAWSCredentials(accessKey, secretKey); | ||
final AWSStaticCredentialsProvider awsStaticCredentialsProvider = | ||
new AWSStaticCredentialsProvider(basicAWSCredentials); | ||
|
||
return AmazonSimpleEmailServiceClientBuilder.standard() | ||
.withCredentials(awsStaticCredentialsProvider) | ||
.withRegion(region) | ||
.build(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...java/com/inhabas/api/auth/CorsConfig.java → ...m/inhabas/api/auth/config/CorsConfig.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
35 changes: 35 additions & 0 deletions
35
module-auth/src/main/java/com/inhabas/api/auth/config/TemplateConfig.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,35 @@ | ||
package com.inhabas.api.auth.config; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import org.thymeleaf.TemplateEngine; | ||
import org.thymeleaf.spring5.SpringTemplateEngine; | ||
import org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver; | ||
import org.thymeleaf.templatemode.TemplateMode; | ||
|
||
@Configuration | ||
public class TemplateConfig { | ||
|
||
@Bean | ||
public SpringResourceTemplateResolver springResourceTemplateResolver() { | ||
SpringResourceTemplateResolver springResourceTemplateResolver = | ||
new SpringResourceTemplateResolver(); | ||
springResourceTemplateResolver.setPrefix("classpath:/"); | ||
springResourceTemplateResolver.setCharacterEncoding("UTF-8"); | ||
springResourceTemplateResolver.setSuffix(".html"); | ||
springResourceTemplateResolver.setTemplateMode(TemplateMode.HTML); | ||
springResourceTemplateResolver.setCacheable(false); | ||
|
||
return springResourceTemplateResolver; | ||
} | ||
|
||
@Bean | ||
public TemplateEngine htmlTemplateEngine( | ||
SpringResourceTemplateResolver springResourceTemplateResolver) { | ||
TemplateEngine templateEngine = new SpringTemplateEngine(); | ||
templateEngine.addTemplateResolver(springResourceTemplateResolver); | ||
|
||
return templateEngine; | ||
} | ||
} |
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
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
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
18 changes: 18 additions & 0 deletions
18
...uth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/dto/UpdateTypeRequestDto.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,18 @@ | ||
package com.inhabas.api.auth.domain.oauth2.member.dto; | ||
|
||
import java.util.List; | ||
|
||
import lombok.*; | ||
|
||
import com.inhabas.api.auth.domain.oauth2.member.domain.valueObject.MemberType; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
public class UpdateTypeRequestDto { | ||
|
||
private List<Long> memberIdList; | ||
|
||
private MemberType type; | ||
} |
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
Oops, something went wrong.