New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.EditComBatteryStoreDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryStoreDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryStoreVo; |
| | | import com.panzhihua.common.service.community.ComBatteryStoreFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 电动车商城-商家表(ComBatteryStore) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-商家表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-商家管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryStore") |
| | | public class ComBatteryStoreApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryStoreFeign comBatteryStoreService; |
| | | |
| | | @ApiOperation(value = "分页查询商家列表",response = ComBatteryStoreVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryStoreDto comBatteryStore) { |
| | | return this.comBatteryStoreService.queryByPage(comBatteryStore); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询商家详情",response = ComBatteryStoreVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryStoreService.detailById(id); |
| | | } |
| | | |
| | | } |
| | | |