6 changed files with 90 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||||
|
package com.elink.esua.epdc.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* APP 获取咨询热线图片 返回参数 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @date 2020/05/27 18:30 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EpdcImgConfigResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 图片地址 |
||||
|
*/ |
||||
|
private String imgUrl; |
||||
|
} |
||||
@ -0,0 +1,38 @@ |
|||||
|
package com.elink.esua.epdc.controller; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.dto.result.EpdcImgConfigResultDTO; |
||||
|
import com.elink.esua.epdc.service.ImgConfigService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* APP 获取咨询热线图片 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @date 2020/05/27 18:30 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("heart/imgConfig") |
||||
|
public class ApiImgConfigController { |
||||
|
|
||||
|
@Autowired |
||||
|
private ImgConfigService imgConfigService; |
||||
|
|
||||
|
/** |
||||
|
* 根据 志愿者模块图片类型 查询图片列表 |
||||
|
* @param imgType 志愿者模块图片类型 |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.result.EpdcImgConfigResultDTO>> |
||||
|
* @Author zhangyong |
||||
|
* @Date 17:04 2020-05-27 |
||||
|
**/ |
||||
|
@GetMapping("getImgUrl/{imgType}") |
||||
|
public Result<List<EpdcImgConfigResultDTO>> getImgUrlList(@PathVariable("imgType") String imgType){ |
||||
|
return imgConfigService.listImgUrl(imgType); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue