-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 1,添加修改问卷,删除问卷接口,修改创建问卷 部分逻辑 2,添加修改问卷,删除问卷接口单元测试 * feat: 1,添加修改问卷,删除问卷接口,修改创建问卷 部分逻辑 2,添加修改问卷,删除问卷接口单元测试 * style:代码格式化调整 * style:代码格式化调整 * feat:新增发布问卷接口,同时修改了创建问卷接口 --------- Co-authored-by: kui <[email protected]>
- Loading branch information
Showing
15 changed files
with
337 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,15 @@ | |
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import java.util.Map; | ||
|
||
/** | ||
* 问卷发布后的配置表 | ||
* | ||
* @author [email protected] | ||
* @date: 2024/7/27 13:59 | ||
*/ | ||
@Document("surveySubmit") | ||
@Document("surveyPublish") | ||
@EqualsAndHashCode(callSuper = true) | ||
@ToString(callSuper = true) | ||
@Data | ||
|
@@ -45,7 +46,7 @@ public class SurveyPublish extends BaseEntity { | |
*/ | ||
@NotBlank(message = "问卷schema不能为空") | ||
@NotNull(message = "问卷schema不能为空") | ||
private String code; | ||
private Map<String, Object> code; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
survey-core/src/main/java/com/xiaojusurvey/engine/core/survey/vo/SurveyVO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
//package com.xiaojusurvey.engine.core.survey.vo; | ||
// | ||
//import com.xiaojusurvey.engine.common.entity.Status; | ||
// | ||
//import javax.validation.constraints.NotBlank; | ||
//import javax.validation.constraints.NotNull; | ||
// | ||
///** | ||
// * 问卷信息 | ||
// * | ||
// * @author [email protected] | ||
// * @Date 2024/7/28 21:57 | ||
// */ | ||
//public class SurveyVO { | ||
// | ||
// private String _id; | ||
// | ||
// private String name; | ||
// /** | ||
// * 问卷类型 | ||
// */ | ||
// @NotBlank(message = "问卷类型不能为空") | ||
// @NotNull(message = "问卷类型不能为空") | ||
// private String surveyType; | ||
// | ||
// /** | ||
// * 问卷短链 | ||
// */ | ||
// private String surveyPath; | ||
// /** | ||
// * 问卷标题 | ||
// */ | ||
// private String title; | ||
// /** | ||
// * 当前状态 | ||
// */ | ||
// private Status curStatus; | ||
// | ||
// /** | ||
// * 创建时间 | ||
// */ | ||
// private Long createDate; | ||
// | ||
// /** | ||
// * 创建人 | ||
// */ | ||
// private String creator; | ||
// /** | ||
// * 所有者 | ||
// */ | ||
// private String owner; | ||
// | ||
//} |
Oops, something went wrong.