Skip to content

Commit

Permalink
slack dto 모듈 생성 (#56)
Browse files Browse the repository at this point in the history
* feat(#30): 슬랙 모듈 생성

* feat(#30): Message entity 생성

* feat(#30): Message Exception 생성

* feat(#30): slack message 전송기능 생성

* refactor(#30): message entity 수정

* feat(#30): slack dto 모듈 생성
  • Loading branch information
kimzinsun authored Oct 7, 2024
1 parent 46031c6 commit 90d8e7d
Show file tree
Hide file tree
Showing 9 changed files with 125 additions and 0 deletions.
37 changes: 37 additions & 0 deletions service/slack/slack_dto/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
36 changes: 36 additions & 0 deletions service/slack/slack_dto/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
}

group = 'com.sparta'
version = '0.0.1-SNAPSHOT'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

tasks.named('test') {
useJUnitPlatform()
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.sparta.slack_dto;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SlackDtoApplication {

public static void main(String[] args) {
SpringApplication.run(SlackDtoApplication.class, args);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.sparta.slack_dto.infrastructure;

import lombok.Getter;
import lombok.Setter;

public class MessageInternalDto {

@Getter
@Setter
public static class Create {

private String receiverEmail;
private String message;

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.application.name=slack_dto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.sparta.slack_dto;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class SlackDtoApplicationTests {

@Test
void contextLoads() {
}

}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ include(':service:order:dto')
include(':service:notification:server')

include(':service:slack:server')
include(':service:slack:slack_dto')

0 comments on commit 90d8e7d

Please sign in to comment.