本文整理汇总了Java中org.lpw.tephra.ctrl.validate.Validators.GREATER_THAN属性的典型用法代码示例。如果您正苦于以下问题:Java Validators.GREATER_THAN属性的具体用法?Java Validators.GREATER_THAN怎么用?Java Validators.GREATER_THAN使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.lpw.tephra.ctrl.validate.Validators
的用法示例。
在下文中一共展示了Validators.GREATER_THAN属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: save
@Execute(name = "save", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "key", failureCode = 2),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "key", failureCode = 3),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "name", failureCode = 4),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "width", failureCode = 5),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "height", failureCode = 6),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "fontMin", failureCode = 7),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "fontMax", failureCode = 8),
@Validate(validator = Validators.NOT_EMPTY, parameter = "chars", failureCode = 9),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "chars", failureCode = 10),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "length", failureCode = 11),
@Validate(validator = Validators.BETWEEN, number = {0, 1}, parameter = "background", failureCode = 12),
@Validate(validator = Validators.SIGN)
})
public Object save() {
return captchaService.save(request.setToModel(new CaptchaModel()));
}
示例2: create
@Execute(name = "create", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "type", failureCode = 3),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "type", failureCode = 4),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "appId", failureCode = 5),
@Validate(validator = Validators.NOT_EMPTY, parameter = "account", failureCode = 6),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "account", failureCode = 7),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 8),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "billNo", failureCode = 9),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 10)
})
public Object create() {
return transferService.create(request.get("type"), request.get("appId"), request.get("user"), request.get("account"),
request.getAsInt("amount"), request.get("billNo"), request.get("notice"), request.getMap());
}
示例3: complete
@Execute(name = "complete", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "orderNo", failureCode = 11),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 7),
@Validate(validator = Validators.NOT_EMPTY, parameter = "tradeNo", failureCode = 12),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "tradeNo", failureCode = 13),
@Validate(validator = Validators.BETWEEN, number = {1, 2}, parameter = "state", failureCode = 14),
@Validate(validator = Validators.SIGN),
@Validate(validator = TransferService.VALIDATOR_EXISTS, parameter = "orderNo", failureCode = 15)
})
public Object complete() {
return transferService.complete(request.get("orderNo"), request.getAsInt("amount"), request.get("tradeNo"),
request.getAsInt("state"), request.getMap());
}
示例4: prepayQrCode
@Execute(name = "prepay-qr-code", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "key", failureCode = 2),
@Validate(validator = Validators.NOT_EMPTY, parameter = "subject", failureCode = 21),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 22),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 23),
@Validate(validator = WeixinService.VALIDATOR_EXISTS, parameter = "key", failureCode = 24)
})
public Object prepayQrCode() {
weixinService.prepayQrCode(request.get("key"), request.get("user"), request.get("subject"), request.getAsInt("amount"),
request.get("billNo"), request.get("notice"), request.getAsInt("size"), request.get("logo"), response.getOutputStream());
return null;
}
示例5: prepayQrCodeBase64
@Execute(name = "prepay-qr-code-base64", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "key", failureCode = 2),
@Validate(validator = Validators.NOT_EMPTY, parameter = "subject", failureCode = 21),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 22),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 23),
@Validate(validator = WeixinService.VALIDATOR_EXISTS, parameter = "key", failureCode = 24)
})
public Object prepayQrCodeBase64() {
return weixinService.prepayQrCodeBase64(request.get("key"), request.get("user"), request.get("subject"), request.getAsInt("amount"),
request.get("billNo"), request.get("notice"), request.getAsInt("size"), request.get("logo"));
}
示例6: prepayApp
@Execute(name = "prepay-app", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "key", failureCode = 2),
@Validate(validator = Validators.NOT_EMPTY, parameter = "subject", failureCode = 21),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 22),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 23),
@Validate(validator = WeixinService.VALIDATOR_EXISTS, parameter = "key", failureCode = 24)
})
public Object prepayApp() {
JSONObject object = weixinService.prepayApp(request.get("key"), request.get("user"), request.get("subject"), request.getAsInt("amount"),
request.get("billNo"), request.get("notice"));
return object == null ? templates.get().failure(2427, message.get(WeixinModel.NAME + ".prepay.failure"), null, null) : object;
}
示例7: create
@Execute(name = "create", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "type", failureCode = 2),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "type", failureCode = 3),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "appId", failureCode = 13),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 4),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "billNo", failureCode = 14),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 5)
})
public Object create() {
return paymentService.create(request.get("type"), request.get("appId"), request.get("user"), request.getAsInt("amount"),
request.get("billNo"), request.get("notice"), request.getMap());
}
示例8: complete
@Execute(name = "complete", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "orderNo", failureCode = 6),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 4),
@Validate(validator = Validators.NOT_EMPTY, parameter = "tradeNo", failureCode = 7),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "tradeNo", failureCode = 8),
@Validate(validator = Validators.BETWEEN, number = {1, 2}, parameter = "state", failureCode = 9),
@Validate(validator = Validators.SIGN),
@Validate(validator = PaymentService.VALIDATOR_EXISTS, parameter = "orderNo", failureCode = 10)
})
public Object complete() {
return paymentService.complete(request.get("orderNo"), request.getAsInt("amount"), request.get("tradeNo"),
request.getAsInt("state"), request.getMap());
}
示例9: quickWapPay
@Execute(name = "quick-wap-pay", type = Templates.FREEMARKER, template = "prepay", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "key", failureCode = 1),
@Validate(validator = Validators.NOT_EMPTY, parameter = "subject", failureCode = 11),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 12),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "billNo", failureCode = 16),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 13),
@Validate(validator = AlipayService.VALIDATOR_EXISTS, parameter = "key", failureCode = 14)
})
public Object quickWapPay() {
Map<String, String> map = new HashMap<>();
map.put("html", alipayService.quickWapPay(request.get("key"), request.get("user"), request.get("subject"),
request.getAsInt("amount"), request.get("billNo"), request.get("notice"), request.get("returnUrl")));
return map;
}
示例10: fastInstantTradePay
@Execute(name = "fast-instant-trade-pay", type = Templates.FREEMARKER, template = "prepay", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "key", failureCode = 1),
@Validate(validator = Validators.NOT_EMPTY, parameter = "subject", failureCode = 11),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 12),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "billNo", failureCode = 16),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 13),
@Validate(validator = AlipayService.VALIDATOR_EXISTS, parameter = "key", failureCode = 14)
})
public Object fastInstantTradePay() {
Map<String, String> map = new HashMap<>();
map.put("html", alipayService.fastInstantTradePay(request.get("key"), request.get("user"), request.get("subject"),
request.getAsInt("amount"), request.get("billNo"), request.get("notice"), request.get("returnUrl")));
return map;
}
示例11: quickMsecurityPay
@Execute(name = "quick-msecurity-pay", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "key", failureCode = 1),
@Validate(validator = Validators.NOT_EMPTY, parameter = "subject", failureCode = 11),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 12),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "billNo", failureCode = 16),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 13),
@Validate(validator = AlipayService.VALIDATOR_EXISTS, parameter = "key", failureCode = 14)
})
public Object quickMsecurityPay() {
return alipayService.quickMsecurityPay(request.get("key"), request.get("user"), request.get("subject"),
request.getAsInt("amount"), request.get("billNo"), request.get("notice"));
}
示例12: transfer
@Execute(name = "transfer", validates = {
@Validate(validator = Validators.NOT_EMPTY, parameter = "key", failureCode = 1),
@Validate(validator = Validators.NOT_EMPTY, parameter = "account", failureCode = 11),
@Validate(validator = Validators.MAX_LENGTH, parameter = "account", failureCode = 15),
@Validate(validator = Validators.GREATER_THAN, number = {9}, parameter = "amount", failureCode = 12),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "billNo", failureCode = 16),
@Validate(validator = Validators.SIGN, string = {"ranch-alipay"}),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 13),
@Validate(validator = AlipayService.VALIDATOR_EXISTS, parameter = "key", failureCode = 14)
})
public Object transfer() {
return alipayService.transfer(request.get("key"), request.get("user"), request.get("account"), request.getAsInt("amount"),
request.get("billNo"), request.get("realName"), request.get("showName"), request.get("remark"), request.get("notice"),
request.getMap());
}
示例13: deposit
@Execute(name = "deposit", validates = {
@Validate(validator = Validators.MAX_LENGTH, number = {36}, parameter = "owner", failureCode = 1),
@Validate(validator = Validators.BETWEEN, number = {0, 9}, parameter = "type", failureCode = 2),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "channel", failureCode = 3),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 4),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 5)
})
public Object deposit() {
return execute(accountService.deposit(request.get("user"), request.get("owner"), request.getAsInt("type"),
request.get("channel"), request.getAsLong("amount"), request.getMap()), 11, "deposit");
}
示例14: withdraw
@Execute(name = "withdraw", validates = {
@Validate(validator = Validators.MAX_LENGTH, number = {36}, parameter = "owner", failureCode = 1),
@Validate(validator = Validators.BETWEEN, number = {0, 9}, parameter = "type", failureCode = 2),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "channel", failureCode = 3),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 4),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 5)
})
public Object withdraw() {
return execute(accountService.withdraw(request.get("user"), request.get("owner"), request.getAsInt("type"),
request.get("channel"), request.getAsLong("amount"), request.getMap()), 12, "withdraw");
}
示例15: reward
@Execute(name = "reward", validates = {
@Validate(validator = Validators.MAX_LENGTH, number = {36}, parameter = "owner", failureCode = 1),
@Validate(validator = Validators.BETWEEN, number = {0, 9}, parameter = "type", failureCode = 2),
@Validate(validator = Validators.MAX_LENGTH, number = {100}, parameter = "channel", failureCode = 3),
@Validate(validator = Validators.GREATER_THAN, number = {0}, parameter = "amount", failureCode = 4),
@Validate(validator = UserHelper.VALIDATOR_EXISTS_OR_SIGN_IN, parameter = "user", failureCode = 5)
})
public Object reward() {
return execute(accountService.reward(request.get("user"), request.get("owner"), request.getAsInt("type"),
request.get("channel"), request.getAsLong("amount")), 13, "reward");
}