검증게시판 기능 추가

This commit is contained in:
Macbook
2026-05-27 15:41:19 +09:00
parent 7a0af36b9b
commit 63693d47c0
57 changed files with 4480 additions and 14 deletions
@@ -137,6 +137,11 @@ public class GcAppSettings {
@Builder.Default
private Integer tradeAlertPopupGridCols = 2;
/** 검증 이슈 등록·단계 변경 알림 팝업 (기본 true) */
@Column(name = "verification_issue_notify", nullable = false)
@Builder.Default
private Boolean verificationIssueNotify = true;
/** 실시간 전략 체크 마스터 ON/OFF — ON 이면 DB 관심종목 전체가 체크 대상 */
@Column(name = "live_strategy_check", nullable = false)
@Builder.Default
@@ -0,0 +1,53 @@
package com.goldenchart.entity;
import jakarta.persistence.*;
import lombok.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "gc_verification_issue")
@Getter @Setter @NoArgsConstructor @AllArgsConstructor @Builder
public class GcVerificationIssue {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "title", nullable = false, length = 300)
private String title;
@Column(name = "content", nullable = false, columnDefinition = "TEXT")
private String content;
@Column(name = "reproduction_path", length = 500)
private String reproductionPath;
@Enumerated(EnumType.STRING)
@Column(name = "stage", nullable = false, length = 32)
@Builder.Default
private VerificationIssueStage stage = VerificationIssueStage.REGISTERED;
@Column(name = "user_id")
private Long userId;
@Column(name = "device_id", length = 100)
private String deviceId;
@Column(name = "created_at", nullable = false, updatable = false)
private LocalDateTime createdAt;
@Column(name = "updated_at")
private LocalDateTime updatedAt;
@PrePersist
protected void onCreate() {
createdAt = LocalDateTime.now();
updatedAt = LocalDateTime.now();
}
@PreUpdate
protected void onUpdate() {
updatedAt = LocalDateTime.now();
}
}
@@ -0,0 +1,48 @@
package com.goldenchart.entity;
import jakarta.persistence.*;
import lombok.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "gc_verification_issue_comment")
@Getter @Setter @NoArgsConstructor @AllArgsConstructor @Builder
public class GcVerificationIssueComment {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "issue_id", nullable = false)
private Long issueId;
@Column(name = "content", nullable = false, columnDefinition = "TEXT")
private String content;
@Column(name = "author_name", length = 100)
private String authorName;
@Column(name = "user_id")
private Long userId;
@Column(name = "device_id", length = 100)
private String deviceId;
@Column(name = "created_at", nullable = false, updatable = false)
private LocalDateTime createdAt;
@Column(name = "updated_at")
private LocalDateTime updatedAt;
@PrePersist
protected void onCreate() {
createdAt = LocalDateTime.now();
updatedAt = LocalDateTime.now();
}
@PreUpdate
protected void onUpdate() {
updatedAt = LocalDateTime.now();
}
}
@@ -0,0 +1,43 @@
package com.goldenchart.entity;
import jakarta.persistence.*;
import lombok.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "gc_verification_issue_image")
@Getter @Setter @NoArgsConstructor @AllArgsConstructor @Builder
public class GcVerificationIssueImage {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "issue_id", nullable = false)
private Long issueId;
@Column(name = "file_name", nullable = false, length = 255)
private String fileName;
@Column(name = "content_type", nullable = false, length = 100)
private String contentType;
@Column(name = "storage_path", nullable = false, length = 500)
private String storagePath;
@Column(name = "file_size", nullable = false)
private Long fileSize;
@Column(name = "sort_order", nullable = false)
@Builder.Default
private Integer sortOrder = 0;
@Column(name = "created_at", nullable = false, updatable = false)
private LocalDateTime createdAt;
@PrePersist
protected void onCreate() {
createdAt = LocalDateTime.now();
}
}
@@ -0,0 +1,10 @@
package com.goldenchart.entity;
/** 검증 이슈 처리 단계 */
public enum VerificationIssueStage {
REGISTERED,
IN_FIX,
FIX_COMPLETE,
RE_REGISTERED,
COMPLETE
}