From 51f1553a960dc3efc093b45cad270992950cb7a7 Mon Sep 17 00:00:00 2001 From: heejjinkim <06.hjhj.12@gmail.com> Date: Tue, 3 Sep 2024 18:14:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Role,=20Provider,=20Status=20enum=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit related to: #11 --- .../com/_119/wepro/global/enums/Provider.java | 17 +++++++++++++++++ .../java/com/_119/wepro/global/enums/Role.java | 5 +++++ .../com/_119/wepro/global/enums/Status.java | 5 +++++ 3 files changed, 27 insertions(+) create mode 100644 src/main/java/com/_119/wepro/global/enums/Provider.java create mode 100644 src/main/java/com/_119/wepro/global/enums/Role.java create mode 100644 src/main/java/com/_119/wepro/global/enums/Status.java diff --git a/src/main/java/com/_119/wepro/global/enums/Provider.java b/src/main/java/com/_119/wepro/global/enums/Provider.java new file mode 100644 index 0000000..c7b508b --- /dev/null +++ b/src/main/java/com/_119/wepro/global/enums/Provider.java @@ -0,0 +1,17 @@ +package com._119.wepro.global.enums; + +import lombok.AllArgsConstructor; +import lombok.Getter; + +@Getter +@AllArgsConstructor +public enum Provider { + KAKAO("https://kauth.kakao.com/.well-known/jwks.json"), + //TODO apple jwk set uri 세팅하기 + APPLE("https://kauth.kakao.com/.well-known/jwks.json"), + ; + + private final String jwkSetUrl; + +// public static IdentityProvider of(){} +} \ No newline at end of file diff --git a/src/main/java/com/_119/wepro/global/enums/Role.java b/src/main/java/com/_119/wepro/global/enums/Role.java new file mode 100644 index 0000000..954a8b6 --- /dev/null +++ b/src/main/java/com/_119/wepro/global/enums/Role.java @@ -0,0 +1,5 @@ +package com._119.wepro.global.enums; + +public enum Role { + ADMIN, USER, GUEST +} diff --git a/src/main/java/com/_119/wepro/global/enums/Status.java b/src/main/java/com/_119/wepro/global/enums/Status.java new file mode 100644 index 0000000..645cbbc --- /dev/null +++ b/src/main/java/com/_119/wepro/global/enums/Status.java @@ -0,0 +1,5 @@ +package com._119.wepro.global.enums; + +public enum Status { + ACTIVE, INACTIVE +}