Commit f3125f82 authored by 高滢's avatar 高滢
parents 7351b685 7ceda232
......@@ -34,7 +34,7 @@ public class CarReviewTaskController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "车辆审查任务", businessType = BusinessType.INSERT)
@RequestMapping(method = RequestMethod.POST, value = "/create")
@RequestMapping(method = RequestMethod.POST, value = "/add")
public R<String> create(@Validated @RequestBody CarReviewTaskCreateRequest request) {
carReviewTaskService.createTask(request);
return R.ok();
......@@ -43,7 +43,7 @@ public class CarReviewTaskController extends BaseController {
@ApiOperation("查看车辆问卷审查任务详情")
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/view")
@RequestMapping(method = RequestMethod.POST, value = "/getById")
public R<CarReviewTaskViewResponse> view(@Validated @RequestBody CarReviewTaskViewRequest request) {
CarReviewTaskViewResponse carReviewTaskViewResponse = carReviewTaskService.viewReviewTask(request.getTaskId());
return R.ok(carReviewTaskViewResponse);
......
......@@ -42,7 +42,7 @@ public class ReviewEnterpriseArchiveController extends BaseController {
@ApiOperation("根据id查询")
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/getInfo")
@RequestMapping(method = RequestMethod.POST, value = "/getById")
public R<ReviewEnterpriseArchive> getInfo(@Validated @RequestBody ReviewEnterpriseArchiveGetInfoRequest request) {
ReviewEnterpriseArchive reviewEnterpriseArchive = reviewEnterpriseArchiveService.getInfo(request);
......
......@@ -34,7 +34,7 @@ public class ReviewSceneChangeTaskController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "场景变更任务", businessType = BusinessType.INSERT)
@RequestMapping(method = RequestMethod.POST, value = "/create")
@RequestMapping(method = RequestMethod.POST, value = "/add")
public R<String> create(@Validated @RequestBody ReviewSceneChangeTaskCreateRequest request) {
ReviewSceneChangeTask reviewSceneChangeTask = new ReviewSceneChangeTask();
......
......@@ -47,7 +47,7 @@ public class StandardController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "编辑任务", businessType = BusinessType.UPDATE)
@RequestMapping(method = RequestMethod.POST, value = "/editStandard")
@RequestMapping(method = RequestMethod.POST, value = "/edit")
public R<String> editTask(@Validated @RequestBody StandardEditRequest request) {
standardService.editStandard(request);
return R.ok();
......@@ -56,7 +56,7 @@ public class StandardController extends BaseController {
@ApiOperation("查看标准详情")
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/getInfo")
@RequestMapping(method = RequestMethod.POST, value = "/getById")
public R<Standard> getInfo(@Validated @RequestBody StandardGetInfoRequest request) {
Standard standard = standardService.getInfo(request);
......
......@@ -37,7 +37,7 @@ public class SystemReviewTaskController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "体系审查任务", businessType = BusinessType.INSERT)
@RequestMapping(method = RequestMethod.POST, value = "/create")
@RequestMapping(method = RequestMethod.POST, value = "/add")
public R<String> create(@Validated @RequestBody SystemReviewTaskCreateRequest request) {
systemReviewTaskService.createTaskTest(request);
return R.ok();
......@@ -46,7 +46,7 @@ public class SystemReviewTaskController extends BaseController {
@ApiOperation("查看体系审查任务详情")
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/view")
@RequestMapping(method = RequestMethod.POST, value = "/getById")
public R<SystemReviewTaskViewResponse> view(@Validated @RequestBody SystemReviewTaskViewRequest request) {
SystemReviewTaskViewResponse systemReviewTaskViewResponse = systemReviewTaskService.view(request.getTaskId());
return R.ok(systemReviewTaskViewResponse);
......
......@@ -55,7 +55,7 @@ public class TaskController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "总任务", businessType = BusinessType.INSERT)
@RequestMapping(method = RequestMethod.POST, value = "/createTask")
@RequestMapping(method = RequestMethod.POST, value = "/add")
public R<String> createTask(@Validated @RequestBody TaskCreateRequest request) {
taskService.createTask(request);
return R.ok();
......@@ -64,7 +64,7 @@ public class TaskController extends BaseController {
@ApiOperation("查看任务详情")
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/getInfo")
@RequestMapping(method = RequestMethod.POST, value = "/getById")
public R<TaskGetInfoResponse> getInfo(@Validated @RequestBody TaskGetInfoRequest request) {
TaskGetInfoResponse response = taskService.getInfo(request);
......@@ -112,7 +112,7 @@ public class TaskController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "编辑任务", businessType = BusinessType.UPDATE)
@RequestMapping(method = RequestMethod.POST, value = "/editTask")
@RequestMapping(method = RequestMethod.POST, value = "/edit")
public R<String> editTask(@Validated @RequestBody TaskEditRequest request) {
taskService.editTask(request);
return R.ok();
......@@ -122,7 +122,7 @@ public class TaskController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "删除任务", businessType = BusinessType.DELETE)
@RequestMapping(method = RequestMethod.POST, value = "/deleteTask")
@RequestMapping(method = RequestMethod.POST, value = "/remove")
public R<String> deleteTask(@Validated @RequestBody TaskDeleteRequest request) {
taskService.deleteTask(request);
return R.ok();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment