Commit bab8ecb1 by guojuxing

风险模式审核时间返回int

parent d6905253
......@@ -38,7 +38,10 @@ public class RiskModeController {
public RestResponse getRiskModeRemainingTime() {
UserDetail userDetail = UserDetailUtils.getUserDetail();
ServiceResponse<Long> serviceResponse = riskModeApiService.getRiskModeRemainingTime(userDetail.getEnterpriseId(), userDetail.getUserId());
return ResultControllerUtils.commonResult(serviceResponse);
if (serviceResponse.isSuccess()) {
return RestResponse.success(serviceResponse.getResult() != null ? serviceResponse.getResult().intValue() : null);
}
return RestResponse.failure(serviceResponse.getCode(), serviceResponse.getMessage());
}
@RequestMapping("/check-risk-mode")
......
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