Authored by Lixiaodi

页码默认值

... ... @@ -24,8 +24,8 @@ public class DepositController {
@RequestMapping(params = "method=ufo.deposit.queryUserDoposit")
public ApiResponse queryUserDoposit(@RequestParam("uid") Integer uid
, @RequestParam(value = "limit", required = false) Integer limit
, @RequestParam(value = "page", required = false) Integer page
, @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
, @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
) {
if (uid == null || uid < 1) {
LOG.warn("queryUserDoposit failed, invalid uid: {}", uid);
... ... @@ -39,8 +39,8 @@ public class DepositController {
@RequestMapping(params = "method=ufo.deposit.queryUserDopositBackDetail")
public ApiResponse queryUserDopositBackDetail(@RequestParam("uid") Integer uid
, @RequestParam(value = "limit", required = false) Integer limit
, @RequestParam(value = "page", required = false) Integer page
, @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
, @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
) {
if (uid == null || uid < 1) {
LOG.warn("queryUserDopositBackDetail failed, invalid uid: {}", uid);
... ... @@ -55,8 +55,8 @@ public class DepositController {
@RequestMapping(params = "method=ufo.deposit.queryUserDopositing")
public ApiResponse queryUserDopositing(@RequestParam("uid") Integer uid
, @RequestParam("productId") Integer productId
, @RequestParam(value = "limit", required = false) Integer limit
, @RequestParam(value = "page", required = false) Integer page
, @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
, @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
) {
if (uid == null || uid < 1) {
LOG.warn("queryUserDopositing failed, invalid uid: {}", uid);
... ...