10 changed files with 138 additions and 5 deletions
@ -0,0 +1,32 @@ |
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.service.CustomConsultService; |
|||
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; |
|||
|
|||
/** |
|||
* @author: qushutong |
|||
* @Date: 2020/3/2 16:12 |
|||
* @Description: 客服咨询相关 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("custom/consult") |
|||
public class ApiCustomConsultController { |
|||
|
|||
@Autowired |
|||
private CustomConsultService customConsultService; |
|||
/*** |
|||
* 首页咨询入口是否开启 |
|||
* @param |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.lang.String> |
|||
* @author qushutong |
|||
* @date 2020/3/2 16:03 |
|||
*/ |
|||
@GetMapping("checkConsultFlag") |
|||
public Result<String> checkConsultFlag(){ |
|||
return customConsultService.getSwitchByNewest(); |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.elink.esua.epdc.service; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
|
|||
/** |
|||
* @author: qushutong |
|||
* @Date: 2020/3/2 16:16 |
|||
* @Description: 咨询相关 |
|||
*/ |
|||
public interface CustomConsultService { |
|||
|
|||
/*** |
|||
* 咨询公示,首页开关 |
|||
* @param |
|||
* @return java.lang.String |
|||
* @author qushutong |
|||
* @date 2020/3/2 15:53 |
|||
*/ |
|||
Result<String> getSwitchByNewest(); |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.elink.esua.epdc.service.impl; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.feign.CustomFeignClient; |
|||
import com.elink.esua.epdc.service.CustomConsultService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* @author: qushutong |
|||
* @Date: 2020/3/2 16:16 |
|||
* @Description: 咨询相关 |
|||
*/ |
|||
@Service |
|||
public class CustomConsultServiceImpl implements CustomConsultService { |
|||
@Autowired |
|||
private CustomFeignClient customFeignClient; |
|||
|
|||
@Override |
|||
public Result<String> getSwitchByNewest() { |
|||
return customFeignClient.getSwitchByNewest(); |
|||
} |
|||
} |
Loading…
Reference in new issue