修改控制器名称
This commit is contained in:
parent
e9f9b2c035
commit
d1b02d2c89
|
|
@ -1,7 +1,7 @@
|
||||||
package com.hxkj.admin.controller.setting;
|
package com.hxkj.admin.controller.setting;
|
||||||
|
|
||||||
import com.hxkj.admin.config.aop.Log;
|
import com.hxkj.admin.config.aop.Log;
|
||||||
import com.hxkj.admin.service.setting.IBasicsService;
|
import com.hxkj.admin.service.setting.ISettingBasicsService;
|
||||||
import com.hxkj.common.core.AjaxResult;
|
import com.hxkj.common.core.AjaxResult;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
|
@ -16,7 +16,7 @@ import java.util.Map;
|
||||||
public class BasicsController {
|
public class BasicsController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
IBasicsService iBasicsService;
|
ISettingBasicsService iBasicsService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* “获取”网站信息
|
* “获取”网站信息
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package com.hxkj.admin.controller.setting;
|
package com.hxkj.admin.controller.setting;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Assert;
|
import com.baomidou.mybatisplus.core.toolkit.Assert;
|
||||||
import com.hxkj.admin.service.setting.IStorageService;
|
import com.hxkj.admin.service.setting.ISettingStorageService;
|
||||||
import com.hxkj.common.core.AjaxResult;
|
import com.hxkj.common.core.AjaxResult;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@ import java.util.Map;
|
||||||
public class StorageController {
|
public class StorageController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
IStorageService iStorageService;
|
ISettingStorageService iStorageService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 存储列表
|
* 存储列表
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import java.util.Map;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/system/admin")
|
@RequestMapping("api/system/admin")
|
||||||
public class SystemAdminController {
|
public class AdminController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
ISystemAdminService iSystemAdminService;
|
ISystemAdminService iSystemAdminService;
|
||||||
|
|
@ -18,7 +18,7 @@ import java.util.Map;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/system/dept")
|
@RequestMapping("api/system/dept")
|
||||||
public class SystemDeptController {
|
public class DeptController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
ISystemDeptService iSystemDeptService;
|
ISystemDeptService iSystemDeptService;
|
||||||
|
|
@ -20,7 +20,7 @@ import java.util.Map;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/system/log")
|
@RequestMapping("api/system/log")
|
||||||
public class SystemLogController {
|
public class LogController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
ISystemLogServer iSystemLogServer;
|
ISystemLogServer iSystemLogServer;
|
||||||
|
|
@ -20,7 +20,7 @@ import java.util.Map;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/system")
|
@RequestMapping("api/system")
|
||||||
public class SystemLoginController {
|
public class LoginController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
ISystemLoginService iSystemLoginService;
|
ISystemLoginService iSystemLoginService;
|
||||||
|
|
@ -18,7 +18,7 @@ import javax.annotation.Resource;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/system/menu")
|
@RequestMapping("api/system/menu")
|
||||||
public class SystemMenuController {
|
public class MenuController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
ISystemMenuService iSystemMenuService;
|
ISystemMenuService iSystemMenuService;
|
||||||
|
|
@ -16,7 +16,7 @@ import java.util.Map;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/system/post")
|
@RequestMapping("api/system/post")
|
||||||
public class SystemPostController {
|
public class PostController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
ISystemPostService iSystemPostService;
|
ISystemPostService iSystemPostService;
|
||||||
|
|
@ -18,7 +18,7 @@ import javax.annotation.Resource;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/system/role")
|
@RequestMapping("api/system/role")
|
||||||
public class SystemRoleController {
|
public class RoleController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
ISystemRoleService iSystemRoleService;
|
ISystemRoleService iSystemRoleService;
|
||||||
|
|
@ -5,7 +5,7 @@ import java.util.Map;
|
||||||
/**
|
/**
|
||||||
* 基础配置服务接口类
|
* 基础配置服务接口类
|
||||||
*/
|
*/
|
||||||
public interface IBasicsService {
|
public interface ISettingBasicsService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取网站信息
|
* 获取网站信息
|
||||||
|
|
@ -6,7 +6,7 @@ import java.util.Map;
|
||||||
/**
|
/**
|
||||||
* 存储配置接口类
|
* 存储配置接口类
|
||||||
*/
|
*/
|
||||||
public interface IStorageService {
|
public interface ISettingStorageService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 存储列表
|
* 存储列表
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package com.hxkj.admin.service.setting.impl;
|
package com.hxkj.admin.service.setting.impl;
|
||||||
|
|
||||||
import com.hxkj.admin.service.setting.IBasicsService;
|
import com.hxkj.admin.service.setting.ISettingBasicsService;
|
||||||
import com.hxkj.common.utils.ConfigUtil;
|
import com.hxkj.common.utils.ConfigUtil;
|
||||||
import com.hxkj.common.utils.UrlUtil;
|
import com.hxkj.common.utils.UrlUtil;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -12,7 +12,7 @@ import java.util.Map;
|
||||||
* 基础配置服务实现类
|
* 基础配置服务实现类
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class BasicsServiceImpl implements IBasicsService {
|
public class SettingBasicsServiceImpl implements ISettingBasicsService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取网站信息
|
* 获取网站信息
|
||||||
|
|
@ -2,7 +2,7 @@ package com.hxkj.admin.service.setting.impl;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Assert;
|
import com.baomidou.mybatisplus.core.toolkit.Assert;
|
||||||
import com.hxkj.admin.service.setting.IStorageService;
|
import com.hxkj.admin.service.setting.ISettingStorageService;
|
||||||
import com.hxkj.common.utils.ConfigUtil;
|
import com.hxkj.common.utils.ConfigUtil;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
|
@ -12,7 +12,7 @@ import java.util.*;
|
||||||
* 存储配置实现类
|
* 存储配置实现类
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class StorageServiceImpl implements IStorageService {
|
public class SettingStorageServiceImpl implements ISettingStorageService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 存储列表
|
* 存储列表
|
||||||
|
|
@ -26,7 +26,7 @@ public class StorageServiceImpl implements IStorageService {
|
||||||
List<Map<String, Object>> list = new LinkedList<>();
|
List<Map<String, Object>> list = new LinkedList<>();
|
||||||
|
|
||||||
Map<String, Object> local = new LinkedHashMap<>();
|
Map<String, Object> local = new LinkedHashMap<>();
|
||||||
local.put("alias", "qiniu");
|
local.put("alias", "local");
|
||||||
local.put("describe", "存储在本地服务器");
|
local.put("describe", "存储在本地服务器");
|
||||||
local.put("status", engine.equals("local") ? 1 : 0);
|
local.put("status", engine.equals("local") ? 1 : 0);
|
||||||
list.add(local);
|
list.add(local);
|
||||||
Loading…
Reference in New Issue