Commit 5554c9b6 by xieshixiang

增加提示

parent 42af403e
......@@ -29,14 +29,14 @@ public interface IBindService extends IService<ParkBindInfo> {
* @author: xsx
* @date: 2020/6/19 10:32
*/
Response bind( ParkBindInfo info);
Result bind( ParkBindInfo info);
/**
* 信息解绑
* @param req
* @return
*/
Response unbindInfo( UnBindReq req );
Result unbindInfo( UnBindReq req );
/**
* 查询用户绑定信息
......@@ -51,7 +51,7 @@ public interface IBindService extends IService<ParkBindInfo> {
* @param query
* @return
*/
Response yearCheckInfo( H5BindInfoQuery query);
Result yearCheckInfo( H5BindInfoQuery query);
/**
* 保险信息查询接口
......@@ -68,7 +68,7 @@ public interface IBindService extends IService<ParkBindInfo> {
* @author: xsx
* @date: 2020/6/19 16:06
*/
Response violationInfo( H5BindInfoQuery query);
Result violationInfo( H5BindInfoQuery query);
/**
* 驾照信息查询接口
......@@ -78,6 +78,6 @@ public interface IBindService extends IService<ParkBindInfo> {
* @author: xsx
* @date: 2020/6/19 16:29
*/
Response<DrivingLicenseInfoRes> drivingLicenseInfo( H5BindInfoQuery query);
Result<DrivingLicenseInfoRes> drivingLicenseInfo( H5BindInfoQuery query);
}
......@@ -2,6 +2,9 @@ package com.hikcreate.edl.pub.web.mobile.infra.core.Result;
import com.hikcreate.common.sdk.response.statuscode.StatusCode;
/**
*
*/
public class ResultGenerator {
public static <T> Result<T> success() {
......@@ -43,6 +46,7 @@ public class ResultGenerator {
return result;
}
public static <T> Result<T> fail(long code, String msg) {
Result<T> result = new Result<>();
result.setSuccess(false);
......
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