|
|
@@ -0,0 +1,43 @@
|
|
|
+package com.mooctest.crowd.site.command;
|
|
|
+
|
|
|
+import com.mooctest.crowd.domain.domainobject.PersonalAuthentication;
|
|
|
+import lombok.Data;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+import javax.validation.constraints.Pattern;
|
|
|
+import java.sql.Timestamp;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author: Diors.Po
|
|
|
+ * @Email: 171256175@qq.com
|
|
|
+ * @date 2019-08-27 01:23
|
|
|
+ */
|
|
|
+@Data
|
|
|
+public class ApplyPersonalAuthCommand {
|
|
|
+ @NotNull(message = "用户ID不可为空")
|
|
|
+ private Long userId;
|
|
|
+
|
|
|
+ @NotNull(message = "请填写真实姓名")
|
|
|
+ private String realName;
|
|
|
+
|
|
|
+ @NotNull(message = "请填写身份证号码")
|
|
|
+ @Pattern(regexp = "\\d{15}(\\d{2}[0-9xX])?", message = "身份证号格式错误")
|
|
|
+ private String IDCard;
|
|
|
+
|
|
|
+ @NotNull(message = "请上传身份证图片")
|
|
|
+ private String IDCardPhoto;
|
|
|
+
|
|
|
+ @NotNull(message = "请填写银行卡号")
|
|
|
+ private String bankAccount;
|
|
|
+
|
|
|
+ @NotNull(message = "地址不可为空")
|
|
|
+ private String address;
|
|
|
+
|
|
|
+ public PersonalAuthentication toPersonalAuth(){
|
|
|
+ PersonalAuthentication personalAuthentication = new PersonalAuthentication();
|
|
|
+ BeanUtils.copyProperties(this, personalAuthentication);
|
|
|
+ return personalAuthentication;
|
|
|
+ }
|
|
|
+}
|