|
@@ -1,10 +1,12 @@
|
|
package cn.iocoder.yudao.module.crm.controller.admin.clue.vo;
|
|
package cn.iocoder.yudao.module.crm.controller.admin.clue.vo;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.common.validation.Mobile;
|
|
import cn.iocoder.yudao.framework.common.validation.Mobile;
|
|
|
|
+import cn.iocoder.yudao.framework.common.validation.Telephone;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
@@ -17,44 +19,31 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
|
|
@Data
|
|
@Data
|
|
public class CrmClueBaseVO {
|
|
public class CrmClueBaseVO {
|
|
|
|
|
|
- // TODO @wanwan:转化状态,新增和修改的时候,应该不传递的哈;而是在未来的时候,才会更新到
|
|
|
|
- @Schema(description = "转化状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
|
|
|
|
- @NotNull(message = "转化状态不能为空")
|
|
|
|
- private Boolean transformStatus;
|
|
|
|
-
|
|
|
|
- // TODO @wanwan:同 transformStatus
|
|
|
|
- @Schema(description = "跟进状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
|
|
|
|
- @NotNull(message = "跟进状态不能为空")
|
|
|
|
- private Boolean followUpStatus;
|
|
|
|
-
|
|
|
|
@Schema(description = "线索名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "线索xxx")
|
|
@Schema(description = "线索名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "线索xxx")
|
|
- @NotNull(message = "线索名称不能为空") // TODO @wanwan:应该是 NotEmpty 噢。空串都无法接受
|
|
|
|
|
|
+ @NotEmpty(message = "线索名称不能为空")
|
|
private String name;
|
|
private String name;
|
|
|
|
|
|
- // TODO @wanwan:中英文之间,要有个空格;例如说,客户 id 不能为空
|
|
|
|
- @Schema(description = "客户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "520")
|
|
|
|
- @NotNull(message = "客户id不能为空")
|
|
|
|
|
|
+ @Schema(description = "客户 id", requiredMode = Schema.RequiredMode.REQUIRED, example = "520")
|
|
|
|
+ @NotNull(message = "客户不能为空")
|
|
private Long customerId;
|
|
private Long customerId;
|
|
|
|
|
|
@Schema(description = "下次联系时间", example = "2023-10-18 01:00:00")
|
|
@Schema(description = "下次联系时间", example = "2023-10-18 01:00:00")
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
private LocalDateTime contactNextTime;
|
|
private LocalDateTime contactNextTime;
|
|
|
|
|
|
- // TODO @wanwan:@Schema 在 @Mobile 之前,要保持统一的顺序;2)可以加个 @Telephone 的校验格式;应该不是手机的格式哈
|
|
|
|
- @Mobile(message = "电话格式不正确")
|
|
|
|
@Schema(description = "电话", example = "18000000000")
|
|
@Schema(description = "电话", example = "18000000000")
|
|
|
|
+ @Telephone
|
|
private String telephone;
|
|
private String telephone;
|
|
|
|
|
|
- // TODO @wanwan:@Schema 在 @Mobile 之前,要保持统一的顺序;2)类似 @Mobile 这个提示如果是默认的,就可以不写 message
|
|
|
|
- @Mobile(message = "手机号格式不正确")
|
|
|
|
@Schema(description = "手机号", example = "18000000000")
|
|
@Schema(description = "手机号", example = "18000000000")
|
|
|
|
+ @Mobile
|
|
private String mobile;
|
|
private String mobile;
|
|
|
|
|
|
@Schema(description = "地址", example = "北京市海淀区")
|
|
@Schema(description = "地址", example = "北京市海淀区")
|
|
private String address;
|
|
private String address;
|
|
|
|
|
|
@Schema(description = "负责人的用户编号", example = "27199")
|
|
@Schema(description = "负责人的用户编号", example = "27199")
|
|
- // TODO @wanwan:这个是必填字段哈;
|
|
|
|
|
|
+ @NotNull(message = "负责人不能为空")
|
|
private Long ownerUserId;
|
|
private Long ownerUserId;
|
|
|
|
|
|
@Schema(description = "最后跟进时间")
|
|
@Schema(description = "最后跟进时间")
|