Commit f715ac1a authored by tangwei's avatar tangwei

增加绑定接口

parent fc2a8b29
...@@ -1701,4 +1701,17 @@ public class CommandController extends BaseController { ...@@ -1701,4 +1701,17 @@ public class CommandController extends BaseController {
HashMap.class); HashMap.class);
return ResponseHelper.buildResponse(weather); return ResponseHelper.buildResponse(weather);
} }
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/getuserBJ", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "获取当前登录人员是否绑定车辆", notes = "获取当前登录人员是否绑定车辆")
public ResponseModel<Object> getuserBJ() {
AgencyUserModel agencyUserModel = getUserInfo();
Long id = null;
//获取用户已绑定车辆id、
UserCar userCar = userCarService.selectByAmosUserId(Long.valueOf(agencyUserModel.getUserId()));
return ResponseHelper.buildResponse(userCar);
}
} }
\ No newline at end of file
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