package com.cool.store.controller.webb;

import com.cool.store.context.CurrentUserHolder;
import com.cool.store.context.LoginUserInfo;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.AssessmentTemplateService;
import com.cool.store.vo.AssessmentTemplateVO;
import com.cool.store.vo.desk.IntendPendingVO;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author suzhuhong
 * @Date 2024/4/25 11:41
 * @Version 1.0
 */
@Api(tags = "模板列表")
@RestController
@RequestMapping("pc/template")
public class AssessmentTemplateController {

    @Resource
    AssessmentTemplateService assessmentTemplateService;

    @ApiOperation("检查项模板列表type 0 1 2 3")
    @GetMapping("/listByType")
    public ResponseResult<List<AssessmentTemplateVO>> intendPendingList(@RequestParam(value = "type",required = true)Integer type) {
        return ResponseResult.success(assessmentTemplateService.listByType(type));
    }

}
