package com.huaheng.api.wcs.controller; import com.huaheng.api.wcs.service.taskCancel.TaskCancelService; import com.huaheng.framework.aspectj.lang.annotation.ApiLogger; 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 @ApiLogger(apiName = "取消任务", from="WCS") public AjaxResult info(Integer id) { return taskCancelService.TaskCance(id); } }