-
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.
[STMT-6] 🔨 D-n rule D-day 자동 감소를 위한 스크립트 추가 (#7)
[STMT-6] 🔨 D-n rule D-day 자동 감소를 위한 스크립트 추가 (#7)
- Loading branch information
Showing
14 changed files
with
124 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: D-n rule 자동화(일자마다 D-Day 감소) | ||
on: | ||
schedule: | ||
- cron: '0 15 * * *' | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
dnrule: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: dnrule | ||
uses: zxcv9203/dnRule@v1.0.1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-repository: ${{ github.repository }} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/stumeet/server/account/adapter/in/web/AccountController.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.stumeet.server.account.adapter.in.web; | ||
|
||
import com.stumeet.server.common.annotation.WebAdapter; | ||
|
||
@WebAdapter | ||
public class AccountController { | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/stumeet/server/account/adapter/out/persistence/AccountJpaEntity.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,11 @@ | ||
package com.stumeet.server.account.adapter.out.persistence; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
|
||
@Entity | ||
public class AccountJpaEntity { | ||
|
||
@Id | ||
private Long id; | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/stumeet/server/account/adapter/out/persistence/AccountMapper.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,4 @@ | ||
package com.stumeet.server.account.adapter.out.persistence; | ||
|
||
public class AccountMapper { | ||
} |
8 changes: 8 additions & 0 deletions
8
...in/java/com/stumeet/server/account/adapter/out/persistence/AccountPersistenceAdapter.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,8 @@ | ||
package com.stumeet.server.account.adapter.out.persistence; | ||
|
||
import com.stumeet.server.account.application.port.out.AccountPort; | ||
import com.stumeet.server.common.annotation.PersistenceAdapter; | ||
|
||
@PersistenceAdapter | ||
public class AccountPersistenceAdapter implements AccountPort { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/stumeet/server/account/adapter/out/persistence/JpaAccountRepository.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,6 @@ | ||
package com.stumeet.server.account.adapter.out.persistence; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface JpaAccountRepository extends JpaRepository<AccountJpaEntity, Long> { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/stumeet/server/account/application/port/in/AccountUseCase.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,4 @@ | ||
package com.stumeet.server.account.application.port.in; | ||
|
||
public interface AccountUseCase { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/stumeet/server/account/application/port/in/SignupCommand.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,4 @@ | ||
package com.stumeet.server.account.application.port.in; | ||
|
||
public record SignupCommand() { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/stumeet/server/account/application/port/out/AccountPort.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,4 @@ | ||
package com.stumeet.server.account.application.port.out; | ||
|
||
public interface AccountPort { | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/stumeet/server/account/application/service/AccountService.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,8 @@ | ||
package com.stumeet.server.account.application.service; | ||
|
||
import com.stumeet.server.account.application.port.in.AccountUseCase; | ||
import com.stumeet.server.common.annotation.UseCase; | ||
|
||
@UseCase | ||
public class AccountService implements AccountUseCase { | ||
} |
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,4 @@ | ||
package com.stumeet.server.account.domain; | ||
|
||
public class Account { | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/stumeet/server/common/annotation/PersistenceAdapter.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,16 @@ | ||
package com.stumeet.server.common.annotation; | ||
|
||
import org.springframework.core.annotation.AliasFor; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target({ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Component | ||
public @interface PersistenceAdapter { | ||
|
||
@AliasFor(annotation = Component.class) | ||
String value() default ""; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/stumeet/server/common/annotation/UseCase.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,16 @@ | ||
package com.stumeet.server.common.annotation; | ||
|
||
import org.springframework.core.annotation.AliasFor; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target({ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Component | ||
public @interface UseCase { | ||
|
||
@AliasFor(annotation = Component.class) | ||
String value() default ""; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/stumeet/server/common/annotation/WebAdapter.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,16 @@ | ||
package com.stumeet.server.common.annotation; | ||
|
||
import org.springframework.core.annotation.AliasFor; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target({ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@RestController | ||
public @interface WebAdapter { | ||
|
||
@AliasFor(annotation = RestController.class) | ||
String value() default ""; | ||
} |