...
|
...
|
@@ -99,4 +99,17 @@ public class DepositController { |
|
|
LOG.info("queryUserStorageOffCount result: {}", count);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(count).build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.deposit.queryUserStorageCount")
|
|
|
@Cachable(expire = 180)
|
|
|
public ApiResponse queryUserStorageCount(@RequestParam("uid") Integer uid) {
|
|
|
if (uid == null || uid < 1) {
|
|
|
LOG.warn("queryUserStorageCount failed, invalid uid: {}", uid);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message("查询失败").build();
|
|
|
}
|
|
|
int count = depositService.getUserDepositCount(uid);
|
|
|
LOG.info("queryUserStorageCount result: {}", count);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(count).build();
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|