package cn.cslg.report.controller;

import cn.cslg.report.common.core.base.Constants;

import cn.cslg.report.common.utils.SecurityUtils.LoginUtils;
import cn.cslg.report.service.business.AssoTaskPersonelService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

@Tag(name = "任务人员操作")
@RestController
@RequestMapping(Constants.REPORT_API + "/AssoTaskPersonel")
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
public class AssoTaskPersonelController {
    public final AssoTaskPersonelService assoTaskPersonelService;
    private final LoginUtils loginUtils;
    @GetMapping("/getPartClient")
    @Operation(summary = "分页获取对比专利")
    public String getPagination( int  state, int taskId,int location)throws IOException{
        Integer id = loginUtils.getId();
        return assoTaskPersonelService.pagination(id,state,taskId,location);
    }



}
