| | |
| | | import com.xcong.excoin.common.utils.OssUtils;
|
| | | import com.xcong.excoin.modules.helpCenter.entity.HelpCenterArticleEntity;
|
| | | import com.xcong.excoin.modules.helpCenter.entity.HelpCenterNoticeEntity;
|
| | | import com.xcong.excoin.modules.helpCenter.entity.HelpCenterTypeEntity;
|
| | | import com.xcong.excoin.modules.helpCenter.service.HelpCenterService;
|
| | | import sun.misc.BASE64Encoder;
|
| | |
|
| | |
| | | private final HelpCenterService helpCenterService;
|
| | |
|
| | | /**
|
| | | * 帮助中心---类型---删除
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | @GetMapping("helpCenterTypeDelete/{id}")
|
| | | @ControllerEndpoint(operation = "删除", exceptionMessage = "删除失败")
|
| | | public FebsResponse helpCenterTypeDelete(@NotNull(message = "{required}") @PathVariable Long id) {
|
| | | return helpCenterService.helpCenterTypeDelete(id);
|
| | | }
|
| | | |
| | | /**
|
| | | * 帮助中心---类型---新增
|
| | | */
|
| | | @PostMapping("helpCenterTypeAdds")
|
| | | @ControllerEndpoint(operation = " 帮助中心---类型---新增", exceptionMessage = "新增失败")
|
| | | public FebsResponse helpCenterTypeAdds(@Valid HelpCenterTypeEntity helpCenterTypeEntity) {
|
| | | helpCenterService.helpCenterTypeAdds(helpCenterTypeEntity);
|
| | | return new FebsResponse().success();
|
| | | }
|
| | | |
| | | /**
|
| | | * 帮助中心---类型---列表
|
| | | * @return
|
| | | */
|
| | | @GetMapping("getHelpCenterTypeList")
|
| | | public FebsResponse getHelpCenterTypeList(HelpCenterTypeEntity helpCenterTypeEntity, QueryRequest request) {
|
| | | Map<String, Object> data = getDataTable(helpCenterService.findHelpCenterTypeListInPage(helpCenterTypeEntity, request));
|
| | | return new FebsResponse().success().data(data);
|
| | | }
|
| | | |
| | | /**
|
| | | * 帮助中心---列表
|
| | | * @return
|
| | | */
|