增加设置方法
This commit is contained in:
parent
60455a7227
commit
b87ea37bb3
|
|
@ -1,40 +0,0 @@
|
|||
package com.mdd.admin.controller;
|
||||
|
||||
import com.mdd.common.core.AjaxResult;
|
||||
import com.mdd.common.plugin.sms.SmsDriver;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("api/test")
|
||||
public class TestController {
|
||||
|
||||
@GetMapping("/sms")
|
||||
public Object sms() {
|
||||
|
||||
Map<String, String> params = new LinkedHashMap<>();
|
||||
// 阿里云的
|
||||
params.put("user_name", "刘明");
|
||||
params.put("sex", "先生");
|
||||
params.put("order_sn", "2202665565668741");
|
||||
params.put("gg", "YT8314171250428");
|
||||
params.put("eee", "圆通快递");
|
||||
|
||||
// 腾讯云的
|
||||
|
||||
|
||||
(new SmsDriver())
|
||||
.setMobile("15627119239")
|
||||
// .setTemplateCode("SMS_222463029")
|
||||
.setTemplateCode("1074928")
|
||||
.setTemplateParam(params)
|
||||
.sendSms();
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 网站版权配置管理
|
||||
*/
|
||||
@RestController
|
||||
@RestController("settingCopyrightController")
|
||||
@RequestMapping("api/setting/copyright")
|
||||
public class CopyrightController {
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 字典数据配置管理
|
||||
*/
|
||||
@RestController
|
||||
@RestController("settingDictDataController")
|
||||
@RequestMapping("api/setting/dict/data")
|
||||
public class DictDataController {
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 字典类型配置管理
|
||||
*/
|
||||
@RestController
|
||||
@RestController("settingDictTypeController")
|
||||
@RequestMapping("api/setting/dict/type")
|
||||
public class DictTypeController {
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
package com.mdd.admin.controller.setting;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController("settingLoginController")
|
||||
@RequestMapping("api/setting/login")
|
||||
public class LoginController {
|
||||
|
||||
@GetMapping("/detail")
|
||||
public Object detail() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@PostMapping("/save")
|
||||
public Object save() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 通知设置管理
|
||||
*/
|
||||
@RestController
|
||||
@RestController("settingNoticeController")
|
||||
@RequestMapping("api/setting/notice")
|
||||
public class NoticeController {
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 政策协议配置管理
|
||||
*/
|
||||
@RestController
|
||||
@RestController("settingProtocolController")
|
||||
@RequestMapping("api/setting/protocol")
|
||||
public class ProtocolController {
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
package com.mdd.admin.controller.setting;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 热搜设置
|
||||
*/
|
||||
@RestController("settingSearchController")
|
||||
@RequestMapping("api/setting/search")
|
||||
public class SearchController {
|
||||
}
|
||||
|
|
@ -12,7 +12,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 短信设置管理
|
||||
*/
|
||||
@RestController
|
||||
@RestController("settingSmsController")
|
||||
@RequestMapping("api/setting/sms")
|
||||
public class SmsController {
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 存储方式配置管理
|
||||
*/
|
||||
@RestController
|
||||
@RestController("settingStorageController")
|
||||
@RequestMapping("api/setting/storage")
|
||||
public class StorageController {
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
package com.mdd.admin.controller.setting;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 用户设置管理
|
||||
*/
|
||||
@RestController("settingUserController")
|
||||
@RequestMapping("api/setting/user")
|
||||
public class UserController {
|
||||
|
||||
@GetMapping("/detail")
|
||||
public Object detail() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@PostMapping("/save")
|
||||
public Object save() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 网站信息配置管理
|
||||
*/
|
||||
@RestController
|
||||
@RestController("settingWebsiteController")
|
||||
@RequestMapping("api/setting/website")
|
||||
public class WebsiteController {
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ public class DecorateTabbarServiceImpl implements IDecorateTabbarService {
|
|||
|
||||
for (String obj : ArrayUtil.objectToListAsStr(params.get("list"))) {
|
||||
Map<String, String> item = ToolsUtil.jsonToMap(obj);
|
||||
System.out.println(item);
|
||||
DecorateTabbar model = new DecorateTabbar();
|
||||
model.setName(item.get("name"));
|
||||
model.setSelected(UrlUtil.toRelativeUrl(item.get("selected")));
|
||||
|
|
|
|||
Loading…
Reference in New Issue