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.
|
|
|
|
package com.project.appeal.controller;
|
|
|
|
|
|
|
|
|
|
import com.project.appeal.application.AppealApplication;
|
|
|
|
|
import com.project.appeal.domain.dto.AppealDTO;
|
|
|
|
|
import com.project.base.domain.result.Result;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 申诉模块-考生端
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping("/api/appeal")
|
|
|
|
|
@RestController
|
|
|
|
|
public class AppealController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private AppealApplication appealApplication;
|
|
|
|
|
|
|
|
|
|
@PostMapping("saveOrUpdate")
|
|
|
|
|
public Result<AppealDTO> saveOrUpdate(@RequestBody AppealDTO appealDTO){
|
|
|
|
|
return appealApplication.saveOrUpdate(appealDTO);
|
|
|
|
|
}
|
|
|
|
|
}
|