用户,社交接口
Change-Id: I10d13773cbe4bbcf3b69a2038cdf7aa9ba54b6df
diff --git a/src/main/java/com/example/myproject/entity/UserTaskStatus.java b/src/main/java/com/example/myproject/entity/UserTaskStatus.java
new file mode 100644
index 0000000..a66839d
--- /dev/null
+++ b/src/main/java/com/example/myproject/entity/UserTaskStatus.java
@@ -0,0 +1,98 @@
+package com.example.myproject.entity;
+
+import javax.persistence.*;
+
+@Entity
+@Table(name = "user_task_status")
+public class UserTaskStatus {
+
+ @Id
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ @Column(name = "status_id")
+ private Long statusId;
+
+ @Column(name = "user_id", nullable = false)
+ private Long userId;
+
+ @Column(name = "task_id", nullable = false)
+ private String taskId;
+
+ @Column(name = "current_progress", nullable = false)
+ private Float currentProgress;
+
+ @Column(name = "current_experience", nullable = false)
+ private Integer currentExperience;
+
+ @Column(name = "current_points", nullable = false)
+ private Integer currentPoints;
+
+ @Column(name = "status", nullable = false)
+ private String status;
+
+ @Column(name = "is_reward_claimed", nullable = false)
+ private Boolean isRewardClaimed = false;
+
+ public Long getStatusId() {
+ return statusId;
+ }
+
+ public void setStatusId(Long statusId) {
+ this.statusId = statusId;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public String getTaskId() {
+ return taskId;
+ }
+
+ public void setTaskId(String taskId) {
+ this.taskId = taskId;
+ }
+
+ public Float getCurrentProgress() {
+ return currentProgress;
+ }
+
+ public void setCurrentProgress(Float currentProgress) {
+ this.currentProgress = currentProgress;
+ }
+
+ public Integer getCurrentExperience() {
+ return currentExperience;
+ }
+
+ public void setCurrentExperience(Integer currentExperience) {
+ this.currentExperience = currentExperience;
+ }
+
+ public Integer getCurrentPoints() {
+ return currentPoints;
+ }
+
+ public void setCurrentPoints(Integer currentPoints) {
+ this.currentPoints = currentPoints;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public Boolean getIsRewardClaimed() {
+ return isRewardClaimed;
+ }
+
+ public void setIsRewardClaimed(Boolean isRewardClaimed) {
+ this.isRewardClaimed = isRewardClaimed;
+ }
+}