| | |
| | | import com.panzhihua.service_community.service.ComCvtServeService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * 查询便民服务商家详情 |
| | | * |
| | | * @param id 商家主键 |
| | | * @param cityCode 城市编码 |
| | | * @return 返回结果 |
| | | */ |
| | | @GetMapping("/business/get") |
| | | public R getComCvtBusiness(@RequestParam("id") Long id) { |
| | | return comCvtBusinessService.getComCvtBusiness(id); |
| | | public R getComCvtBusiness(@RequestParam("id") Long id, @RequestParam("cityCode") String cityCode) { |
| | | return comCvtBusinessService.getComCvtBusiness(id, cityCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 返回结果 |
| | | */ |
| | | @PostMapping("/category/add") |
| | | public R addComCvtCategory(@RequestBody ComCvtCategoryDTO comCvtCategoryDTO) { |
| | | public R addComCvtCategory(@Valid @RequestBody ComCvtCategoryDTO comCvtCategoryDTO) { |
| | | return comCvtCategoryService.addComCvtCategory(comCvtCategoryDTO); |
| | | } |
| | | |