Blame view

src/main/java/com/huaheng/api/wcs/controller/TaskInfoController.java 889 Bytes
mahuandong authored
1
2
3
package com.huaheng.api.wcs.controller;

import com.huaheng.api.wcs.service.taskCancel.TaskCancelService;
周峰 authored
4
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
mahuandong authored
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Enzo Cotter on 2019/12/6.
 */
@RestController
@RequestMapping("/API/taskInfo")
public class TaskInfoController extends BaseController {

    @Resource
    private TaskCancelService taskCancelService;


    @GetMapping
周峰 authored
25
    @ApiLogger(apiName = "取消任务", from="WCS")
mahuandong authored
26
27
28
29
    public AjaxResult info(Integer id) {
        return taskCancelService.TaskCance(id);
    }
}