package com.gkhy.exam.admin.controller.app;
|
|
import com.gkhy.exam.common.api.CommonResult;
|
import com.gkhy.exam.system.domain.ItemReviewUser;
|
import com.gkhy.exam.system.service.ItemReviewService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
@Api(tags = "APP项目审批前端控制器")
|
@RestController
|
@RequestMapping("/app/item/review")
|
public class AppItemReviewController {
|
|
@Autowired
|
private ItemReviewService itemReviewService;
|
|
|
|
/**
|
* 待审批
|
* @param userId
|
* @return
|
*/
|
@ApiOperation(value = "待审批列表")
|
@GetMapping("/approvalList")
|
public CommonResult approvalList(@RequestParam("userId") Integer userId){
|
return itemReviewService.approvalList(userId);
|
}
|
|
|
/**
|
* 审批
|
* @param itemReviewUser
|
* @return
|
*/
|
@ApiOperation(value = "审批")
|
@PostMapping("/approval")
|
public CommonResult approval(@RequestBody ItemReviewUser itemReviewUser){
|
return itemReviewService.approval(itemReviewUser);
|
}
|
|
|
}
|