调试修改海康访客-1
This commit is contained in:
1 parent
82fe8afa3e
commit
2ac305e479
14 files changed
+265
-23
No files matched your search
+1
-1
@@ -47,7 +47,7 @@ public interface RemoterVisitorService {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/visitors/appointment")
|
||||
R<VisitorObjectResponse<AppointmentData>> createVisitorAppointment(@Valid @RequestBody VisitorAppointmentRequest request);
|
||||
VisitorObjectResponse<AppointmentData> createVisitorAppointment(@Valid @RequestBody VisitorAppointmentRequest request);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto.visitor;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -23,6 +24,7 @@ public class AppointmentInfo {
|
||||
* 动态二维码内容
|
||||
* 需转换为二维码图片
|
||||
*/
|
||||
|
||||
private String QRCode;
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ public class VisitorAppointmentRequest {
|
||||
* 被访人唯一标识(必填)
|
||||
* 通过人员查询接口获取的personId
|
||||
*/
|
||||
@NotBlank(message = "被访人ID不能为空")
|
||||
// @NotBlank(message = "被访人ID不能为空")
|
||||
private String receptionistId;
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -31,10 +31,10 @@ public class VisitorInfo {
|
||||
* 性别(必填)
|
||||
* 1-男,2-女
|
||||
*/
|
||||
@NotNull(message = "性别不能为空")
|
||||
// @NotNull(message = "性别不能为空")
|
||||
@Min(value = 1, message = "性别值无效")
|
||||
@Max(value = 2, message = "性别值无效")
|
||||
private Integer gender;
|
||||
private Integer gender=1;
|
||||
|
||||
/**
|
||||
* 联系电话(必填)
|
||||
|
||||
Reference in new issue
Block a user