8 changed files with 81 additions and 3 deletions
@ -0,0 +1,40 @@ |
|||||
|
package com.elink.esua.epdc.controller.v2; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.api.version.ApiVersion; |
||||
|
import com.elink.esua.epdc.commons.tools.constant.Constant; |
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.dto.result.StartupPageResultDTO; |
||||
|
import com.elink.esua.epdc.service.StartupPageService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author songyunpeng |
||||
|
* @Description 启动页管理 v2 |
||||
|
* @create 2020-05-18 |
||||
|
*/ |
||||
|
@ApiVersion(2) |
||||
|
@RestController |
||||
|
@RequestMapping("startup" + Constant.VERSION_CONTROL) |
||||
|
public class ApiStartupV2Controller { |
||||
|
|
||||
|
@Autowired |
||||
|
private StartupPageService startupPageService; |
||||
|
|
||||
|
/** |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.dto.result.StartupPageResultDTO> |
||||
|
* @Description 获取欢迎页信息 v2 |
||||
|
* @Author songyunpeng |
||||
|
* @Date 2020/3/25 |
||||
|
* @Param [] |
||||
|
**/ |
||||
|
@GetMapping("getStartupPage") |
||||
|
public Result<List<StartupPageResultDTO>> getStartupPage() { |
||||
|
List<StartupPageResultDTO> data = startupPageService.getStartupPageV2(); |
||||
|
return new Result<List<StartupPageResultDTO>>().ok(data); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue