Skip to content

Commit

Permalink
[STMT-6] 🔨 D-n rule D-day 자동 감소를 위한 스크립트 추가 (#7)
Browse files Browse the repository at this point in the history
[STMT-6] 🔨 D-n rule D-day 자동 감소를 위한 스크립트 추가 (#7)
  • Loading branch information
zxcv9203 authored Feb 4, 2024
2 parents 4ba488e + 809184c commit da0ba3a
Show file tree
Hide file tree
Showing 14 changed files with 124 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/dnrule.yml
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 }}
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 {
}
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;
}
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 {
}
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 {
}
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> {
}
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 {
}
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() {
}
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 {
}
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 {
}
4 changes: 4 additions & 0 deletions src/main/java/com/stumeet/server/account/domain/Account.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.stumeet.server.account.domain;

public class Account {
}
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 src/main/java/com/stumeet/server/common/annotation/UseCase.java
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 src/main/java/com/stumeet/server/common/annotation/WebAdapter.java
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 "";
}

0 comments on commit da0ba3a

Please sign in to comment.