k94314517
2024-02-18 79243a38ffb959be94e1a81f922675d093850454
server/dmvisit_service/src/main/java/com/doumee/dao/admin/request/VisitConfigDTO.java
@@ -18,35 +18,22 @@
@ApiModel("劳务来访配置")
public class VisitConfigDTO {
    @ApiModelProperty(value = "来访预约方式 0否,1是")
    private Integer reservationWay;
    @ApiModelProperty(value = "参数对象")
    private VisitConfigParam visitConfigParam;
    @ApiModelProperty(value = "被访人校验方式 0手机号单独校验 1手机号和姓名组合校验")
    private Integer checkVisit;
    @ApiModelProperty(value = "劳务答题主题")
    private String theme = "";
    @ApiModelProperty(value = "健康证是否必填 0=否;1=是")
    private Integer healthCard;
    @ApiModelProperty(value = "劳务答题说明")
    private String description = "";
    @ApiModelProperty(value = "是否答题 0不需要,1需要" )
    private Integer isAnswer;
//    /**
//     * 对象驼峰属性转下划线
//     * @param object
//     * @return
//     * @throws JsonProcessingException
//     */
//    public static String toUnderlineJSONString(Object object) throws JsonProcessingException {
//        ObjectMapper mapper = new ObjectMapper();
//        mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
//        mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
//        String reqJson = mapper.writeValueAsString(object);
//        return reqJson;
//    }
//
//
//    public static <T> T toSnakeObject(String json, Class<T> clazz) throws IOException {
//        ObjectMapper mapper = new ObjectMapper();
//        mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
//        T reqJson =  mapper.readValue(json, clazz);
//        return reqJson;
//    }
    @ApiModelProperty(value = "答题主题")
    private String theme;
    @ApiModelProperty(value = "答题说明")
    private String description;
}