forked from lilishop/lilishop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop
- Loading branch information
Showing
2 changed files
with
66 additions
and
18 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
common-api/src/main/java/cn/lili/controller/common/SiteController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package cn.lili.controller.common; | ||
|
||
import cn.lili.common.enums.ResultUtil; | ||
import cn.lili.common.vo.ResultMessage; | ||
import cn.lili.modules.system.entity.enums.SettingEnum; | ||
import cn.lili.modules.system.service.SettingService; | ||
import io.swagger.annotations.Api; | ||
import io.swagger.annotations.ApiOperation; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
/** | ||
* 滑块验证码接口 | ||
* | ||
* @author Chopper | ||
* @since 2020/11/26 15:41 | ||
*/ | ||
@Slf4j | ||
@RestController | ||
@RequestMapping("/common/common/site") | ||
@Api(tags = "系统基础接口") | ||
public class SiteController { | ||
|
||
@Autowired | ||
private SettingService settingService; | ||
|
||
@ApiOperation(value = "获取系统基础信息") | ||
@GetMapping | ||
public ResultMessage<Object> getFileList() { | ||
return ResultUtil.data(settingService.get(SettingEnum.BASE_SETTING.name())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters