| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.applets.weixin.CheckService; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.ComOpsHouseDTO; |
| | |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.common.validated.PutGroup; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | 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; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | private CommunityService communityService; |
| | | @Resource |
| | | private CheckService checkService; |
| | | |
| | | |
| | | @ApiOperation(value = "房屋租售-新增") |
| | | @PostMapping("house") |
| | |
| | | return communityService.addOpsHouse(comOpsHouseDTO); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "房屋租售-分页查询",response = ComOpsHouseVO.class) |
| | | @PostMapping("pagehouse") |
| | | public R pageHouse(@RequestBody PageComOpsHouseDTO pageComOpsHouseDTO) { |
| | |
| | | return communityService.pageOpsHouse(pageComOpsHouseDTO); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "房屋租售-详情",response = ComOpsHouseVO.class) |
| | | @GetMapping("house") |
| | | @ApiImplicitParam(name = "id",value = "房屋租售主键",required = true) |
| | | public R detailHouse(@RequestParam("id") Long id) { |
| | | return communityService.detailOpsHouse(id); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "房屋租售-修改") |
| | | @PostMapping("putHouse") |
| | |
| | | public R undercarriageHouse(@RequestBody @Validated(PutGroup.class) ComOpsHouseUndercarriageVO comOpsHouseVO) { |
| | | return communityService.undercarriageHouse(comOpsHouseVO); |
| | | } |
| | | |
| | | |
| | | |
| | | } |