Skip to content

Commit

Permalink
feat: 1,添加修改问卷,删除问卷接口,修改创建问卷 部分逻辑
Browse files Browse the repository at this point in the history
2,添加修改问卷,删除问卷接口单元测试
  • Loading branch information
kui committed Jul 27, 2024
1 parent a7cb38c commit 770c8ac
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public enum RespErrorCode {
SURVEY_TYPE_ERROR(3003, "问卷类型错误"),
SURVEY_NOT_FOUND(3004, "问卷不存在"),
SURVEY_CONTENT_NOT_ALLOW(3005, "存在禁用内容"),
UPDATE_SURVEY_META_ERROR(3006,"修改问卷失败"),
DELETE_SURVEY_ERROR(3007,"删除问卷失败"),
UPDATE_SURVEY_META_ERROR(3006, "修改问卷失败"),
DELETE_SURVEY_ERROR(3007, "删除问卷失败"),
CAPTCHA_INCORRECT(4001, "验证码不正确"),
RESPONSE_SIGN_ERROR(9001, "签名不正确"),
RESPONSE_CURRENT_TIME_NOT_ALLOW(9002, "当前时间不允许提交"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,21 @@ public class Status implements Serializable {
private Long date;

private String status;


public Long getDate() {
return date;
}

public void setDate(Long date) {
this.date = date;
}

public String getStatus() {
return status;
}

public void setStatus(String status) {
this.status = status;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public enum SurveyStatusEnum {

private String status;

private SurveyStatusEnum(String status){
private SurveyStatusEnum(String status) {
this.status = status;
}

Expand All @@ -27,7 +27,7 @@ public String getStatus() {
}


public static Status getSpecStatus(SurveyStatusEnum statusEnum){
public static Status getSpecStatus(SurveyStatusEnum statusEnum) {
Status newStatus = new Status();
newStatus.setStatus(statusEnum.getStatus());
newStatus.setDate(System.currentTimeMillis());
Expand Down

0 comments on commit 770c8ac

Please sign in to comment.