101captain
2022-08-15 bfbfe7d5fd6c90d5f7359762223ce4bd1cc7cfa1
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommodityOrderCollageTeamController.java
New file
@@ -0,0 +1,106 @@
package com.panzhihua.service_community.api;
import com.panzhihua.service_community.service.ComBatteryCommodityOrderCollageTeamService;
import com.panzhihua.common.model.dtos.common.*;
import com.panzhihua.common.model.vos.R;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
 * title: 电动车商城-拼团订单团队表(ComBatteryCommodityOrderCollageTeam)  表控制层
 * <p>
 * projectName 成都呐喊信息技术有限公司-智慧社区项目
 * <p>
 * description: 电动车商城-拼团订单团队表
 *
 * @author lyq
 * @date 2022-03-29 16:06:55
 */
@RestController
@RequestMapping("/comBatteryCommodityOrderCollageTeam")
public class ComBatteryCommodityOrderCollageTeamController {
    @Resource
    private ComBatteryCommodityOrderCollageTeamService comBatteryCommodityOrderCollageTeamService;
    /**
     * description  queryByPage  分页查询
     *
     * @param comBatteryCommodityOrderCollageTeam 请求参数
     * @return 分页查询返回参数
     * @author lyq
     * @date 2022-03-29 16:06:55
     */
    @PostMapping("/page")
    public R queryByPage(@RequestBody PageComBatteryCommodityOrderCollageTeamDto comBatteryCommodityOrderCollageTeam) {
        return this.comBatteryCommodityOrderCollageTeamService.queryByPage(comBatteryCommodityOrderCollageTeam);
    }
    /**
     * description  add  新增数据
     *
     * @param comBatteryCommodityOrderCollageTeam 请求参数
     * @return 新增结果
     * @author lyq
     * @date 2022-03-29 16:06:55
     */
    @PostMapping("/add")
    public R add(@RequestBody AddComBatteryCommodityOrderCollageTeamDto comBatteryCommodityOrderCollageTeam) {
        return this.comBatteryCommodityOrderCollageTeamService.insert(comBatteryCommodityOrderCollageTeam);
    }
    /**
     * description  edit  编辑数据
     *
     * @param comBatteryCommodityOrderCollageTeam 请求参数
     * @return 编辑结果
     * @author lyq
     * @date 2022-03-29 16:06:55
     */
    @PutMapping("/edit")
    public R edit(@RequestBody EditComBatteryCommodityOrderCollageTeamDto comBatteryCommodityOrderCollageTeam) {
        return this.comBatteryCommodityOrderCollageTeamService.update(comBatteryCommodityOrderCollageTeam);
    }
    /**
     * description  deleteById  删除数据
     *
     * @param id 主键id
     * @return 删除结果
     * @author lyq
     * @date 2022-03-29 16:06:55
     */
    @GetMapping("/delete")
    public R deleteById(@RequestParam("id") Long id) {
        return this.comBatteryCommodityOrderCollageTeamService.deleteById(id);
    }
    /**
     * description  detailById  查询详情
     *
     * @param id 主键id
     * @return 详情数据
     * @author lyq
     * @date 2022-03-29 16:06:55
     */
    @GetMapping("/detail")
    public R detailById(@RequestParam("id") Long id,@RequestParam("userId") Long userId) {
        return this.comBatteryCommodityOrderCollageTeamService.detailById(id,userId);
    }
    /**
     * description  queryByPage  查询列表
     *
     * @param comBatteryCommodityOrderCollageTeam 请求参数
     * @return 列表数据
     * @author lyq
     * @date 2022-03-29 16:06:55
     */
    @PostMapping("/list")
    public R queryByList(@RequestBody PageComBatteryCommodityOrderCollageTeamDto comBatteryCommodityOrderCollageTeam) {
        return this.comBatteryCommodityOrderCollageTeamService.queryByList(comBatteryCommodityOrderCollageTeam);
    }
}