package com.panzhihua.service_community.api; import com.panzhihua.service_community.service.ComChangeCarModelRelationService; 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: 换新车-车型与规格关联表(ComChangeCarModelRelation) 表控制层 *

* projectName 成都呐喊信息技术有限公司-智慧社区项目 *

* description: 换新车-车型与规格关联表 * * @author lyq * @date 2022-04-07 13:55:29 */ @RestController @RequestMapping("/comChangeCarModelRelation") public class ComChangeCarModelRelationController { @Resource private ComChangeCarModelRelationService comChangeCarModelRelationService; /** * description queryByPage 分页查询 * * @param comChangeCarModelRelation 请求参数 * @return 分页查询返回参数 * @author lyq * @date 2022-04-07 13:55:29 */ @PostMapping("/page") public R queryByPage(@RequestBody PageComChangeCarModelRelationDto comChangeCarModelRelation) { return this.comChangeCarModelRelationService.queryByPage(comChangeCarModelRelation); } /** * description add 新增数据 * * @param comChangeCarModelRelation 请求参数 * @return 新增结果 * @author lyq * @date 2022-04-07 13:55:29 */ @PostMapping("/add") public R add(@RequestBody AddComChangeCarModelRelationDto comChangeCarModelRelation) { return this.comChangeCarModelRelationService.insert(comChangeCarModelRelation); } /** * description edit 编辑数据 * * @param comChangeCarModelRelation 请求参数 * @return 编辑结果 * @author lyq * @date 2022-04-07 13:55:29 */ @PutMapping("/edit") public R edit(@RequestBody EditComChangeCarModelRelationDto comChangeCarModelRelation) { return this.comChangeCarModelRelationService.update(comChangeCarModelRelation); } /** * description deleteById 删除数据 * * @param id 主键id * @return 删除结果 * @author lyq * @date 2022-04-07 13:55:29 */ @GetMapping("/delete") public R deleteById(@RequestParam("id") Long id) { return this.comChangeCarModelRelationService.deleteById(id); } /** * description detailById 查询详情 * * @param id 主键id * @return 详情数据 * @author lyq * @date 2022-04-07 13:55:29 */ @GetMapping("/detail") public R detailById(@RequestParam("id") Long id) { return this.comChangeCarModelRelationService.detailById(id); } /** * description queryByPage 查询列表 * * @param comChangeCarModelRelation 请求参数 * @return 列表数据 * @author lyq * @date 2022-04-07 13:55:29 */ @PostMapping("/list") public R queryByList(@RequestBody PageComChangeCarModelRelationDto comChangeCarModelRelation) { return this.comChangeCarModelRelationService.queryByList(comChangeCarModelRelation); } /** * description queryByPage 小程序分页查询 * * @param comChangeCarModelRelation 请求参数 * @return 小程序分页查询返回参数 * @author lyq * @date 2022-04-07 13:55:29 */ @PostMapping("/applets/page") public R queryByAppletsPage(@RequestBody PageComChangeCarModelRelationDto comChangeCarModelRelation) { return this.comChangeCarModelRelationService.queryByAppletsPage(comChangeCarModelRelation); } }