package com.project.appeal.controller; import com.github.tingyugetc520.ali.dingtalk.error.DtErrorException; import com.project.appeal.application.AppealApplication; import com.project.appeal.domain.dto.AppealDTO; import com.project.appeal.domain.param.AppealParam; import com.project.base.domain.result.PageResult; import com.project.base.domain.result.Result; import com.project.operation.annotation.OperationLog; import jakarta.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; /** * 申诉模块 */ @RequestMapping("/api/admin/appeal") @RestController public class AppealAdminController { @Autowired private AppealApplication appealApplication; @PostMapping("saveOrUpdate") @OperationLog(module = "申诉审批") public Result saveOrUpdate(AppealDTO appealDTO) throws Exception { return appealApplication.saveOrUpdate(appealDTO); } @GetMapping("list") public Result> list(AppealParam appealParam){ return appealApplication.list(appealParam); } @GetMapping("export") public void export(AppealParam appealParam, HttpServletResponse response) throws DtErrorException { appealApplication.export(appealParam,response); } }