Skip to content

Commit

Permalink
add - #160 슬랙 관련 상수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jumining committed Aug 20, 2024
1 parent 1321438 commit b1d5ba5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package sopt.org.hmh.domain.slack;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum AttachmentColor {

GREEN("98ff98"),
ORANGE("ffb700"),
RED("ff0000");

private final String color;
}
16 changes: 16 additions & 0 deletions src/main/java/sopt/org/hmh/domain/slack/constant/SlackStatus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package sopt.org.hmh.domain.slack;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum SlackStatus {

NEW_USER_SIGNUP(AttachmentColor.GREEN.getColor(), "🎉 신규 유저 회원 가입 발생"),
INTERNAL_ERROR(AttachmentColor.ORANGE.getColor(), "🚨 서버 내부 에러 발생"),
CLIENT_ERROR(AttachmentColor.GREEN.getColor(), "😭 서버 오류 발생");

private final String color;
private final String title;
}

0 comments on commit b1d5ba5

Please sign in to comment.