package com.dsk.cscec.controller;


import com.dsk.common.core.controller.BaseController;
import com.dsk.cscec.service.AdvisoryBodyProjectService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 咨询机构和项目关联表(AdvisoryBodyProject)表控制层
 *
 * @author makejava
 * @since 2023-12-15 15:57:54
 */
@RestController
@RequestMapping("advisoryBodyProject")
public class AdvisoryBodyProjectController extends BaseController {
    /**
     * 服务对象
     */
    @Resource
    private AdvisoryBodyProjectService advisoryBodyProjectService;

    ///**
    // * 分页查询所有数据
    // *
    // * @param page 分页对象
    // * @param advisoryBodyProject 查询实体
    // * @return 所有数据
    // */
    //@GetMapping
    //public R selectAll(Page<AdvisoryBodyProject> page, AdvisoryBodyProject advisoryBodyProject) {
    //    return success(this.advisoryBodyProjectService.page(page, new QueryWrapper<>(advisoryBodyProject)));
    //}
    //
    ///**
    // * 通过主键查询单条数据
    // *
    // * @param id 主键
    // * @return 单条数据
    // */
    //@GetMapping("{id}")
    //public R selectOne(@PathVariable Serializable id) {
    //    return success(this.advisoryBodyProjectService.getById(id));
    //}
    //
    ///**
    // * 新增数据
    // *
    // * @param advisoryBodyProject 实体对象
    // * @return 新增结果
    // */
    //@PostMapping
    //public R insert(@RequestBody AdvisoryBodyProject advisoryBodyProject) {
    //    return success(this.advisoryBodyProjectService.save(advisoryBodyProject));
    //}
    //
    ///**
    // * 修改数据
    // *
    // * @param advisoryBodyProject 实体对象
    // * @return 修改结果
    // */
    //@PutMapping
    //public R update(@RequestBody AdvisoryBodyProject advisoryBodyProject) {
    //    return success(this.advisoryBodyProjectService.updateById(advisoryBodyProject));
    //}
    //
    ///**
    // * 删除数据
    // *
    // * @param idList 主键结合
    // * @return 删除结果
    // */
    //@DeleteMapping
    //public R delete(@RequestParam("idList") List<Long> idList) {
    //    return success(this.advisoryBodyProjectService.removeByIds(idList));
    //}
}

