|
@@ -66,7 +66,7 @@ public class Api08Controller extends BladeController {
|
|
|
private final BladeRedis bladeRedis;
|
|
|
|
|
|
@GetMapping("/payments-list")
|
|
|
- @ApiOperationSupport(order = 10)
|
|
|
+ @ApiOperationSupport(order = 1)
|
|
|
@ApiOperation(value = "查询支付方式")
|
|
|
public R<List<Payments>> paymentsList() {
|
|
|
List<Payments> list = bladeRedis.get(CacheBizConstant.CACHE_DEFAULT_PAYMENTS);
|
|
@@ -81,7 +81,7 @@ public class Api08Controller extends BladeController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/ads-list")
|
|
|
- @ApiOperationSupport(order = 9)
|
|
|
+ @ApiOperationSupport(order = 2)
|
|
|
@ApiOperation(value = "查询轮播数据", notes = "传入类型和条数,类型为字典项ads_type,1应用首页,2商城首页,3推荐品牌,4抢购专区,5新品推荐,6人气推荐")
|
|
|
public R<List<Ads>> adsList(@ApiParam(value = "类型", required = true) @RequestParam Integer type,
|
|
|
@ApiParam(value = "条数,默认条数由系统配置", required = false) @RequestParam(required = false) Integer limit) {
|
|
@@ -94,11 +94,11 @@ public class Api08Controller extends BladeController {
|
|
|
@SneakyThrows
|
|
|
@PostMapping("/common/send-validate")
|
|
|
@ApiOperation(value = "短信发送", notes = "传入手机号")
|
|
|
+ @ApiOperationSupport(order = 3)
|
|
|
public R sendValidate(@RequestParam String phone) {
|
|
|
Map<String, String> params = SmsUtil.getValidateParams();
|
|
|
SmsCode smsCode = smsBuilder.noAuthTemplate().sendValidate(new SmsData(params).setKey(PARAM_KEY), phone);
|
|
|
return smsCode.isSuccess() ? R.data(smsCode, SEND_SUCCESS) : R.fail(SEND_FAIL);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|