xiaoyong931011
2020-08-20 e74838c27c1779c1fd056e40b1e9dad5ff1537d4
src/main/java/com/xcong/excoin/modules/helpCenter/controller/HelpCenterController.java
@@ -23,6 +23,7 @@
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;
@@ -40,6 +41,37 @@
   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
     */