LandingPageGenerationTask.java
3.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// landingpage/entity/LandingPageGenerationTask.java
package com.aigeo.landingpage.entity;
import com.aigeo.common.enums.TaskStatus;
import jakarta.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "ai_landing_page_generation_tasks")
public class LandingPageGenerationTask {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "project_id", nullable = false)
private Integer projectId;
@Column(name = "user_id", nullable = false)
private Integer userId;
@Enumerated(EnumType.STRING)
private TaskStatus status;
private Byte progress;
@Column(name = "dify_api_config_id")
private Integer difyApiConfigId;
@Column(name = "prompt_template_id")
private Integer promptTemplateId;
@Column(name = "final_prompt_snapshot")
private String finalPromptSnapshot;
@Column(name = "error_message")
private String errorMessage;
@Column(name = "created_at")
private LocalDateTime createdAt;
@Column(name = "completed_at")
private LocalDateTime completedAt;
// Constructors
public LandingPageGenerationTask() {}
// Getters and Setters
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getProjectId() {
return projectId;
}
public void setProjectId(Integer projectId) {
this.projectId = projectId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public TaskStatus getStatus() {
return status;
}
public void setStatus(TaskStatus status) {
this.status = status;
}
public Byte getProgress() {
return progress;
}
public void setProgress(Byte progress) {
this.progress = progress;
}
public Integer getDifyApiConfigId() {
return difyApiConfigId;
}
public void setDifyApiConfigId(Integer difyApiConfigId) {
this.difyApiConfigId = difyApiConfigId;
}
public Integer getPromptTemplateId() {
return promptTemplateId;
}
public void setPromptTemplateId(Integer promptTemplateId) {
this.promptTemplateId = promptTemplateId;
}
public String getFinalPromptSnapshot() {
return finalPromptSnapshot;
}
public void setFinalPromptSnapshot(String finalPromptSnapshot) {
this.finalPromptSnapshot = finalPromptSnapshot;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public LocalDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(LocalDateTime createdAt) {
this.createdAt = createdAt;
}
public LocalDateTime getCompletedAt() {
return completedAt;
}
public void setCompletedAt(LocalDateTime completedAt) {
this.completedAt = completedAt;
}
}