Commit b244354d by lixian7

修改controller

parent f460f7ff
...@@ -19,7 +19,7 @@ import javax.annotation.Resource; ...@@ -19,7 +19,7 @@ import javax.annotation.Resource;
/** /**
* 绑定信息的controller * 绑定信息的controller
* * @menu 提供给第三方接口
* @author: xieshixiang * @author: xieshixiang
* @time:2020/6/18 15:59 * @time:2020/6/18 15:59
**/ **/
......
...@@ -10,16 +10,13 @@ import com.hikcreate.edl.pub.web.mobile.infra.model.param.response.ViolationInfo ...@@ -10,16 +10,13 @@ import com.hikcreate.edl.pub.web.mobile.infra.model.param.response.ViolationInfo
import com.hikcreate.edl.pub.web.mobile.infra.model.param.response.YearCheckInfoRes; import com.hikcreate.edl.pub.web.mobile.infra.model.param.response.YearCheckInfoRes;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
/** /**
* 对外提供给H5的接口 * 对外提供给H5的接口
* * @menu H5接口
* @author: xieshixiang * @author: xieshixiang
* @time:2020/6/19 16:37 * @time:2020/6/19 16:37
**/ **/
...@@ -38,7 +35,7 @@ public class H5Controller { ...@@ -38,7 +35,7 @@ public class H5Controller {
* @author: xsx * @author: xsx
* @date: 2020/6/19 10:32 * @date: 2020/6/19 10:32
*/ */
@PostMapping("yearCheckInfo") @GetMapping("yearCheckInfo")
public Result<YearCheckInfoRes> yearCheckInfo(@RequestBody BindInfoQuery query) { public Result<YearCheckInfoRes> yearCheckInfo(@RequestBody BindInfoQuery query) {
if (query == null) { if (query == null) {
return Result.errorResult(ResultCode.PARAMETER_ERROR, "鉴权失败"); return Result.errorResult(ResultCode.PARAMETER_ERROR, "鉴权失败");
...@@ -54,7 +51,7 @@ public class H5Controller { ...@@ -54,7 +51,7 @@ public class H5Controller {
* @author: xsx * @author: xsx
* @date: 2020/6/19 16:28 * @date: 2020/6/19 16:28
*/ */
@PostMapping("violationInfo") @GetMapping("violationInfo")
public Result<ViolationInfoRes> violationInfo(@RequestBody BindInfoQuery query) { public Result<ViolationInfoRes> violationInfo(@RequestBody BindInfoQuery query) {
if (query == null) { if (query == null) {
return Result.errorResult(ResultCode.PARAMETER_ERROR, "鉴权失败"); return Result.errorResult(ResultCode.PARAMETER_ERROR, "鉴权失败");
...@@ -69,7 +66,7 @@ public class H5Controller { ...@@ -69,7 +66,7 @@ public class H5Controller {
* @author: xsx * @author: xsx
* @date: 2020/6/19 16:28 * @date: 2020/6/19 16:28
*/ */
@PostMapping("insuranceInfo") @GetMapping("insuranceInfo")
public Result<InsuranceInfoRes> insuranceInfo(@RequestBody BindInfoQuery query){ public Result<InsuranceInfoRes> insuranceInfo(@RequestBody BindInfoQuery query){
if (query == null) { if (query == null) {
return Result.errorResult(ResultCode.PARAMETER_ERROR, "鉴权失败"); return Result.errorResult(ResultCode.PARAMETER_ERROR, "鉴权失败");
...@@ -85,7 +82,7 @@ public class H5Controller { ...@@ -85,7 +82,7 @@ public class H5Controller {
* @author: xsx * @author: xsx
* @date: 2020/6/19 16:28 * @date: 2020/6/19 16:28
*/ */
@PostMapping("drivingLicenseInfo") @GetMapping("drivingLicenseInfo")
public Result<DrivingLicenseInfoRes> drivingLicenseInfo(@RequestBody BindInfoQuery query) { public Result<DrivingLicenseInfoRes> drivingLicenseInfo(@RequestBody BindInfoQuery query) {
if (query == null) { if (query == null) {
return Result.errorResult(ResultCode.PARAMETER_ERROR, "鉴权失败"); return Result.errorResult(ResultCode.PARAMETER_ERROR, "鉴权失败");
......
...@@ -13,7 +13,7 @@ import java.io.Serializable; ...@@ -13,7 +13,7 @@ import java.io.Serializable;
* @time:2020/6/18 16:07 * @time:2020/6/18 16:07
**/ **/
@Data @Data
public class BindInfoQuery extends PageQuery implements Serializable { public class BindInfoQuery implements Serializable {
/** /**
* 绑定信息的唯一标识. * 绑定信息的唯一标识.
...@@ -27,24 +27,5 @@ public class BindInfoQuery extends PageQuery implements Serializable { ...@@ -27,24 +27,5 @@ public class BindInfoQuery extends PageQuery implements Serializable {
*查询客户的电话号码 *查询客户的电话号码
*/ */
private String phone; private String phone;
/**
* 查询车辆的颜色
*/
private String plateColor;
/**
* 查询车辆的车牌号
*/
private String plateNum;
/**
* 车牌类型
*/
private String plateType;
/**
* 查询绑定信息的状态
*/
private String status;
/**
* 信息的编辑时间
*/
private DateTime editorTime;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment