package com.yuanchu.mom.controller;
|
|
import com.yuanchu.mom.annotation.ValueClassify;
|
import com.yuanchu.mom.pojo.ManageMeetingParticipants;
|
import com.yuanchu.mom.service.ManageMeetingParticipantsService;
|
import com.yuanchu.mom.vo.MeetingParticipantsDetailsVo;
|
import com.yuanchu.mom.vo.Result;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import io.swagger.v3.oas.models.security.SecurityScheme;
|
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.multipart.MultipartFile;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 前端控制器
|
* </p>
|
*
|
* @author
|
* @since 2024-11-11 09:34:27
|
*/
|
@Api(tags = "管理评审会议")
|
@RestController
|
@RequestMapping("/manageMeetingParticipants")
|
public class ManageMeetingParticipantsController {
|
|
@Resource
|
private ManageMeetingParticipantsService manageMeetingParticipantsService;
|
|
|
@ValueClassify(value = "管理评审会议记录参会人员")
|
@ApiOperation(value = "查询会议记录参会人员")
|
@GetMapping("/getParticipants")
|
public Result<MeetingParticipantsDetailsVo> getParticipants(Integer id){
|
return Result.success(manageMeetingParticipantsService.getParticipants(id));
|
}
|
|
@ValueClassify(value = "管理评审会议记录参会人员")
|
@ApiOperation(value = "新增会议记录参会人员")
|
@PostMapping("/add")
|
public Result addParticipants(List<ManageMeetingParticipants> list){
|
manageMeetingParticipantsService.saveBatch(list);
|
return Result.success();
|
}
|
|
@ValueClassify(value = "管理评审会议记录参会人员")
|
@ApiOperation(value = "删除会议记录参会人员")
|
@DeleteMapping("/delete")
|
public Result deleteParticipants(List<Integer> ids){
|
manageMeetingParticipantsService.removeByIds(ids);
|
return Result.success();
|
}
|
|
}
|