Authored by Lixiaodi

页码默认值

@@ -24,8 +24,8 @@ public class DepositController { @@ -24,8 +24,8 @@ public class DepositController {
24 24
25 @RequestMapping(params = "method=ufo.deposit.queryUserDoposit") 25 @RequestMapping(params = "method=ufo.deposit.queryUserDoposit")
26 public ApiResponse queryUserDoposit(@RequestParam("uid") Integer uid 26 public ApiResponse queryUserDoposit(@RequestParam("uid") Integer uid
27 - , @RequestParam(value = "limit", required = false) Integer limit  
28 - , @RequestParam(value = "page", required = false) Integer page 27 + , @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
  28 + , @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
29 ) { 29 ) {
30 if (uid == null || uid < 1) { 30 if (uid == null || uid < 1) {
31 LOG.warn("queryUserDoposit failed, invalid uid: {}", uid); 31 LOG.warn("queryUserDoposit failed, invalid uid: {}", uid);
@@ -39,8 +39,8 @@ public class DepositController { @@ -39,8 +39,8 @@ public class DepositController {
39 39
40 @RequestMapping(params = "method=ufo.deposit.queryUserDopositBackDetail") 40 @RequestMapping(params = "method=ufo.deposit.queryUserDopositBackDetail")
41 public ApiResponse queryUserDopositBackDetail(@RequestParam("uid") Integer uid 41 public ApiResponse queryUserDopositBackDetail(@RequestParam("uid") Integer uid
42 - , @RequestParam(value = "limit", required = false) Integer limit  
43 - , @RequestParam(value = "page", required = false) Integer page 42 + , @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
  43 + , @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
44 ) { 44 ) {
45 if (uid == null || uid < 1) { 45 if (uid == null || uid < 1) {
46 LOG.warn("queryUserDopositBackDetail failed, invalid uid: {}", uid); 46 LOG.warn("queryUserDopositBackDetail failed, invalid uid: {}", uid);
@@ -55,8 +55,8 @@ public class DepositController { @@ -55,8 +55,8 @@ public class DepositController {
55 @RequestMapping(params = "method=ufo.deposit.queryUserDopositing") 55 @RequestMapping(params = "method=ufo.deposit.queryUserDopositing")
56 public ApiResponse queryUserDopositing(@RequestParam("uid") Integer uid 56 public ApiResponse queryUserDopositing(@RequestParam("uid") Integer uid
57 , @RequestParam("productId") Integer productId 57 , @RequestParam("productId") Integer productId
58 - , @RequestParam(value = "limit", required = false) Integer limit  
59 - , @RequestParam(value = "page", required = false) Integer page 58 + , @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
  59 + , @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
60 ) { 60 ) {
61 if (uid == null || uid < 1) { 61 if (uid == null || uid < 1) {
62 LOG.warn("queryUserDopositing failed, invalid uid: {}", uid); 62 LOG.warn("queryUserDopositing failed, invalid uid: {}", uid);