-
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.
- Loading branch information
1 parent
f9514d8
commit e2c2d8f
Showing
16 changed files
with
225 additions
and
25 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
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
3 changes: 2 additions & 1 deletion
3
...redis/sms/SmsCertificationRepository.java → ...s/sms/dao/SmsCertificationRepository.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
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kcy/fitapet/global/common/redis/sms/dao/SmsOauthRepository.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,7 @@ | ||
package com.kcy.fitapet.global.common.redis.sms.dao; | ||
|
||
import com.kcy.fitapet.global.common.redis.sms.domain.SmsOauth; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
public interface SmsOauthRepository extends CrudRepository<SmsOauth, String> { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kcy/fitapet/global/common/redis/sms/dao/SmsPasswordRepository.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,7 @@ | ||
package com.kcy.fitapet.global.common.redis.sms.dao; | ||
|
||
import com.kcy.fitapet.global.common.redis.sms.domain.SmsPassword; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
public interface SmsPasswordRepository extends CrudRepository<SmsPassword, String> { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kcy/fitapet/global/common/redis/sms/dao/SmsRegisterRepository.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,7 @@ | ||
package com.kcy.fitapet.global.common.redis.sms.dao; | ||
|
||
import com.kcy.fitapet.global.common.redis.sms.domain.SmsRegister; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
public interface SmsRegisterRepository extends CrudRepository<SmsRegister, String> { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kcy/fitapet/global/common/redis/sms/dao/SmsUidRepository.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,7 @@ | ||
package com.kcy.fitapet.global.common.redis.sms.dao; | ||
|
||
import com.kcy.fitapet.global.common.redis.sms.domain.SmsUid; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
public interface SmsUidRepository extends CrudRepository<SmsUid, String> { | ||
} |
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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/kcy/fitapet/global/common/redis/sms/domain/SmsOauth.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,27 @@ | ||
package com.kcy.fitapet.global.common.redis.sms.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.redis.core.RedisHash; | ||
|
||
@RedisHash(value = "smsOauth", timeToLive = 300) | ||
@Getter | ||
public class SmsOauth { | ||
@Id | ||
private final String phoneNumber; | ||
private final String code; | ||
|
||
@Builder | ||
public SmsOauth(String phoneNumber, String code) { | ||
this.phoneNumber = phoneNumber; | ||
this.code = code; | ||
} | ||
|
||
public static SmsOauth of(String phoneNumber, String code) { | ||
return SmsOauth.builder() | ||
.phoneNumber(phoneNumber) | ||
.code(code) | ||
.build(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/kcy/fitapet/global/common/redis/sms/domain/SmsPassword.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,27 @@ | ||
package com.kcy.fitapet.global.common.redis.sms.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.redis.core.RedisHash; | ||
|
||
@RedisHash(value = "smsPassword", timeToLive = 300) | ||
@Getter | ||
public class SmsPassword { | ||
@Id | ||
private final String phoneNumber; | ||
private final String code; | ||
|
||
@Builder | ||
public SmsPassword(String phoneNumber, String code) { | ||
this.phoneNumber = phoneNumber; | ||
this.code = code; | ||
} | ||
|
||
public static SmsPassword of(String phoneNumber, String code) { | ||
return SmsPassword.builder() | ||
.phoneNumber(phoneNumber) | ||
.code(code) | ||
.build(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/kcy/fitapet/global/common/redis/sms/domain/SmsRegister.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,27 @@ | ||
package com.kcy.fitapet.global.common.redis.sms.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.redis.core.RedisHash; | ||
|
||
@RedisHash(value = "smsRegister", timeToLive = 300) | ||
@Getter | ||
public class SmsRegister { | ||
@Id | ||
private final String phoneNumber; | ||
private final String code; | ||
|
||
@Builder | ||
public SmsRegister(String phoneNumber, String code) { | ||
this.phoneNumber = phoneNumber; | ||
this.code = code; | ||
} | ||
|
||
public static SmsRegister of(String phoneNumber, String code) { | ||
return SmsRegister.builder() | ||
.phoneNumber(phoneNumber) | ||
.code(code) | ||
.build(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/kcy/fitapet/global/common/redis/sms/domain/SmsUid.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,27 @@ | ||
package com.kcy.fitapet.global.common.redis.sms.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.redis.core.RedisHash; | ||
|
||
@RedisHash(value = "smsUid", timeToLive = 300) | ||
@Getter | ||
public class SmsUid { | ||
@Id | ||
private final String phoneNumber; | ||
private final String code; | ||
|
||
@Builder | ||
public SmsUid(String phoneNumber, String code) { | ||
this.phoneNumber = phoneNumber; | ||
this.code = code; | ||
} | ||
|
||
public static SmsUid of(String phoneNumber, String code) { | ||
return SmsUid.builder() | ||
.phoneNumber(phoneNumber) | ||
.code(code) | ||
.build(); | ||
} | ||
} |
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