|
@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
/**
|
|
@@ -18,7 +19,7 @@ import java.io.Serializable;
|
|
|
public class UpdatePoliceReq implements Serializable {
|
|
|
|
|
|
@ApiModelProperty(value = "id")
|
|
|
- @NotEmpty(message = "id不能为空")
|
|
|
+ @NotNull(message = "id不能为空")
|
|
|
private Integer id;
|
|
|
|
|
|
@ApiModelProperty(value = "账号")
|
|
@@ -41,9 +42,6 @@ public class UpdatePoliceReq implements Serializable {
|
|
|
@ApiModelProperty(value = "密码")
|
|
|
private String password;
|
|
|
|
|
|
- @ApiModelProperty(value = "用户等级(3:派出所管理员)",hidden = true)
|
|
|
- private Integer type = 3;
|
|
|
-
|
|
|
@NotEmpty(message = "详细地址不能为空")
|
|
|
@ApiModelProperty(value = "详细地址")
|
|
|
private String address;
|