|
@@ -1,14 +1,12 @@
|
|
package cn.iocoder.yudao.module.crm.controller.admin.contact.vo;
|
|
package cn.iocoder.yudao.module.crm.controller.admin.contact.vo;
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
-import lombok.*;
|
|
|
|
-import java.util.*;
|
|
|
|
-import java.time.LocalDateTime;
|
|
|
|
-import java.time.LocalDateTime;
|
|
|
|
-import java.time.LocalDateTime;
|
|
|
|
-import javax.validation.constraints.*;
|
|
|
|
|
|
+import lombok.Data;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
|
+
|
|
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -18,6 +16,8 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
|
|
@Data
|
|
@Data
|
|
public class ContactBaseVO {
|
|
public class ContactBaseVO {
|
|
|
|
|
|
|
|
+ // TODO @zyna:部分字段,缺少 example,需要补充;
|
|
|
|
+
|
|
@Schema(description = "联系人名称", example = "张三")
|
|
@Schema(description = "联系人名称", example = "张三")
|
|
@NotNull(message = "姓名不能为空")
|
|
@NotNull(message = "姓名不能为空")
|
|
private String name;
|
|
private String name;
|
|
@@ -25,18 +25,22 @@ public class ContactBaseVO {
|
|
@Schema(description = "下次联系时间")
|
|
@Schema(description = "下次联系时间")
|
|
private LocalDateTime nextTime;
|
|
private LocalDateTime nextTime;
|
|
|
|
|
|
|
|
+ // TODO @zyna:缺少 validator 的校验
|
|
@Schema(description = "手机号")
|
|
@Schema(description = "手机号")
|
|
private String mobile;
|
|
private String mobile;
|
|
|
|
|
|
|
|
+ // TODO @zyna:缺少 validator 的校验
|
|
@Schema(description = "电话")
|
|
@Schema(description = "电话")
|
|
private String telephone;
|
|
private String telephone;
|
|
|
|
|
|
|
|
+ // TODO @zyna:缺少 validator 的校验
|
|
@Schema(description = "电子邮箱")
|
|
@Schema(description = "电子邮箱")
|
|
private String email;
|
|
private String email;
|
|
|
|
|
|
@Schema(description = "职务")
|
|
@Schema(description = "职务")
|
|
private String post;
|
|
private String post;
|
|
|
|
|
|
|
|
+ // TODO @zyna:非空校验
|
|
@Schema(description = "客户编号", example = "10795")
|
|
@Schema(description = "客户编号", example = "10795")
|
|
private Long customerId;
|
|
private Long customerId;
|
|
|
|
|
|
@@ -46,10 +50,12 @@ public class ContactBaseVO {
|
|
@Schema(description = "备注", example = "你说的对")
|
|
@Schema(description = "备注", example = "你说的对")
|
|
private String remark;
|
|
private String remark;
|
|
|
|
|
|
|
|
+ // TODO @zyna:这个新建的时候,应该不会传递;而是后端默认设置自己为负责人;
|
|
@Schema(description = "负责人用户编号", example = "7648")
|
|
@Schema(description = "负责人用户编号", example = "7648")
|
|
private Long ownerUserId;
|
|
private Long ownerUserId;
|
|
|
|
|
|
@Schema(description = "最后跟进时间")
|
|
@Schema(description = "最后跟进时间")
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
private LocalDateTime lastTime;
|
|
private LocalDateTime lastTime;
|
|
|
|
+
|
|
}
|
|
}
|