You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
|
1 month ago
|
package com.project.appeal.controller;
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||
|
1 month ago
|
import com.github.tingyugetc520.ali.dingtalk.error.DtErrorException;
|
||
|
1 month ago
|
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.Result;
|
||
|
|
import com.project.operation.annotation.OperationLog;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.*;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 申诉模块
|
||
|
|
*/
|
||
|
|
@RequestMapping("/api/admin/appeal")
|
||
|
|
@RestController
|
||
|
1 month ago
|
public class AppealAdminController {
|
||
|
1 month ago
|
@Autowired
|
||
|
|
private AppealApplication appealApplication;
|
||
|
|
|
||
|
|
@PostMapping("saveOrUpdate")
|
||
|
|
@OperationLog(module = "申诉审批")
|
||
|
1 month ago
|
public Result<AppealDTO> saveOrUpdate(AppealDTO appealDTO) throws DtErrorException {
|
||
|
1 month ago
|
return appealApplication.saveOrUpdate(appealDTO);
|
||
|
|
}
|
||
|
|
|
||
|
|
@GetMapping("list")
|
||
|
|
public Result<IPage<AppealDTO>> list(AppealParam appealParam){
|
||
|
|
return appealApplication.list(appealParam);
|
||
|
|
}
|
||
|
|
}
|