!344 修改资源服务路由地址 与cloud版本同步

Merge pull request !344 from Yjoioooo/5.X
feature/model
疯狂的狮子Li 2 years ago committed by Gitee
commit 4450c06163
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -55,7 +55,7 @@ public class CaptchaController {
* *
* @param phonenumber * @param phonenumber
*/ */
@GetMapping("/sms/code") @GetMapping("/resource/sms/code")
public R<Void> smsCode(@NotBlank(message = "{user.phonenumber.not.blank}") String phonenumber) { public R<Void> smsCode(@NotBlank(message = "{user.phonenumber.not.blank}") String phonenumber) {
if (!smsProperties.getEnabled()) { if (!smsProperties.getEnabled()) {
return R.fail("当前系统没有开启短信功能!"); return R.fail("当前系统没有开启短信功能!");
@ -81,7 +81,7 @@ public class CaptchaController {
* *
* @param email * @param email
*/ */
@GetMapping("/email/code") @GetMapping("/resource/email/code")
public R<Void> emailCode(@NotBlank(message = "{user.email.not.blank}") String email) { public R<Void> emailCode(@NotBlank(message = "{user.email.not.blank}") String email) {
if (!mailProperties.getEnabled()) { if (!mailProperties.getEnabled()) {
return R.fail("当前系统没有开启邮箱功能!"); return R.fail("当前系统没有开启邮箱功能!");

@ -32,7 +32,7 @@ import java.util.List;
@Validated @Validated
@RequiredArgsConstructor @RequiredArgsConstructor
@RestController @RestController
@RequestMapping("/system/oss/config") @RequestMapping("/resource/oss/config")
public class SysOssConfigController extends BaseController { public class SysOssConfigController extends BaseController {
private final ISysOssConfigService ossConfigService; private final ISysOssConfigService ossConfigService;

@ -34,7 +34,7 @@ import java.util.List;
@Validated @Validated
@RequiredArgsConstructor @RequiredArgsConstructor
@RestController @RestController
@RequestMapping("/system/oss") @RequestMapping("/resource/oss")
public class SysOssController extends BaseController { public class SysOssController extends BaseController {
private final ISysOssService ossService; private final ISysOssService ossService;

Loading…
Cancel
Save