package com.dsh.account.controller;
|
|
|
import com.dsh.account.feignclient.other.model.SysNotice;
|
import com.dsh.account.model.vo.exploreDetail.ExploreDatasVo;
|
import com.dsh.account.model.vo.exploreDetail.LonLatRequest;
|
import com.dsh.account.model.vo.exploreDetails.QuestionDetailsVo;
|
import com.dsh.account.model.vo.exploreDetails.QuestionIns;
|
import com.dsh.account.service.TStudentService;
|
import com.dsh.account.util.ResultUtil;
|
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParams;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.List;
|
|
/**
|
* 探索玩湃 控制器
|
*/
|
@RestController
|
@RequestMapping("")
|
public class ExploreWPController {
|
|
|
@Autowired
|
private TStudentService tsService;
|
|
@ResponseBody
|
@PostMapping("/api/exploreWP/noticeList")
|
@ApiOperation(value = "联系客服-探索首页", tags = {"APP-探索玩湃"})
|
@ApiImplicitParams({
|
@ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....")
|
})
|
public ResultUtil<ExploreDatasVo> indexOfExploreDetail(@RequestBody LonLatRequest llrequest){
|
try {
|
return ResultUtil.success(tsService.queryIndexOfExplores(llrequest));
|
}catch (Exception e){
|
return ResultUtil.runErr();
|
}
|
}
|
|
|
|
@ResponseBody
|
@PostMapping("/base/exploreWP/noticeList")
|
@ApiOperation(value = "联系客服-公告列表", tags = {"APP-探索玩湃"})
|
public ResultUtil<List<SysNotice>> queryNoticeListDatas(){
|
try {
|
return ResultUtil.success(tsService.querySystemNoticeDetails());
|
}catch (Exception e){
|
return ResultUtil.runErr();
|
}
|
}
|
|
|
@ResponseBody
|
@PostMapping("/api/exploreWP/noticeList")
|
@ApiOperation(value = "联系客服-公告详情", tags = {"APP-探索玩湃"})
|
public ResultUtil<SysNotice> queryNotice(@RequestBody Integer noId){
|
try {
|
return ResultUtil.success(tsService.queryNoticeData(noId));
|
}catch (Exception e){
|
return ResultUtil.runErr();
|
}
|
}
|
|
|
@ResponseBody
|
@PostMapping("/base/exploreWP/noticeList")
|
@ApiOperation(value = "联系客服-常见问题列表", tags = {"APP-探索玩湃"})
|
public ResultUtil<QuestionDetailsVo> queryFrequentlyAskedQuestionDetails(){
|
try {
|
return ResultUtil.success(tsService.queryQuestionData());
|
}catch (Exception e){
|
return ResultUtil.runErr();
|
}
|
}
|
|
|
@ResponseBody
|
@PostMapping("/base/exploreWP/noticeList")
|
@ApiOperation(value = "联系客服-常见问题详情", tags = {"APP-探索玩湃"})
|
public ResultUtil<QuestionIns> queryQuestionData(@RequestBody Integer quesId){
|
try {
|
return ResultUtil.success(tsService.queryQuestionDataInfo(quesId));
|
}catch (Exception e){
|
return ResultUtil.runErr();
|
}
|
}
|
|
@ResponseBody
|
@PostMapping("/base/exploreWP/noticeList")
|
@ApiOperation(value = "联系客服-客服电话列表", tags = {"APP-探索玩湃"})
|
public ResultUtil<List<String>> queryCustomerData(){
|
try {
|
return ResultUtil.success(tsService.queryCustomerDetails());
|
}catch (Exception e){
|
return ResultUtil.runErr();
|
}
|
}
|
|
|
}
|