|
|
@ -102,6 +102,13 @@ public class UserAdviceController { |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, UserAdviceExcel.class); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 运营-回复建议 |
|
|
|
* @param dto |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @Author liushaowen |
|
|
|
* @Date 2020/11/10 9:34 |
|
|
|
*/ |
|
|
|
@PostMapping("replyadvice") |
|
|
|
public Result replyAdvice(@RequestBody ReplyAdviceFormDTO dto) { |
|
|
|
ValidatorUtils.validateEntity(dto); |
|
|
@ -109,14 +116,29 @@ public class UserAdviceController { |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 运营端-建议详情 |
|
|
|
* @param map |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @Author liushaowen |
|
|
|
* @Date 2020/11/10 9:33 |
|
|
|
*/ |
|
|
|
@PostMapping("advicedetail") |
|
|
|
public Result adviceDetail(String adviceId) { |
|
|
|
public Result adviceDetail(@RequestBody Map<String,String> map) { |
|
|
|
String adviceId = map.get("adviceId"); |
|
|
|
if (StringUtils.isBlank(adviceId)) { |
|
|
|
throw new RenException("adviceId不能为空"); |
|
|
|
} |
|
|
|
return new Result<AdviceDetailResultDTO>().ok(userAdviceService.adviceDetail(adviceId)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 运营端-建议列表 |
|
|
|
* @param dto |
|
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.commons.tools.page.PageData<com.epmet.dto.result.AdviceListResultDTO>> |
|
|
|
* @Author liushaowen |
|
|
|
* @Date 2020/11/10 9:32 |
|
|
|
*/ |
|
|
|
@PostMapping("advicelist") |
|
|
|
public Result<PageData<AdviceListResultDTO>> adviceList(@RequestBody AdviceListFormDTO dto) { |
|
|
|
ValidatorUtils.validateEntity(dto); |
|
|
|