| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.modules.house.entity.HouseLabelEntity; |
| | | import org.springblade.modules.house.vo.HouseLabelVO; |
| | | import org.springblade.modules.house.vo.UserHouseLabelVO; |
| | | import org.springblade.modules.house.wrapper.HouseLabelWrapper; |
| | | import org.springblade.modules.house.service.IHouseLabelService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详情", notes = "传入houseLabel") |
| | | public R<HouseLabelVO> detail(HouseLabelEntity houseLabel) { |
| | | public R<UserHouseLabelVO> detail(HouseLabelEntity houseLabel) { |
| | | HouseLabelEntity detail = houseLabelService.getOne(Condition.getQueryWrapper(houseLabel)); |
| | | return R.data(HouseLabelWrapper.build().entityVO(detail)); |
| | | } |
| | |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入houseLabel") |
| | | public R<IPage<HouseLabelVO>> list(HouseLabelEntity houseLabel, Query query) { |
| | | public R<IPage<UserHouseLabelVO>> list(HouseLabelEntity houseLabel, Query query) { |
| | | IPage<HouseLabelEntity> pages = houseLabelService.page(Condition.getPage(query), Condition.getQueryWrapper(houseLabel)); |
| | | return R.data(HouseLabelWrapper.build().pageVO(pages)); |
| | | } |
| | |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入houseLabel") |
| | | public R<IPage<HouseLabelVO>> page(HouseLabelVO houseLabel, Query query) { |
| | | IPage<HouseLabelVO> pages = houseLabelService.selectHouseLabelPage(Condition.getPage(query), houseLabel); |
| | | public R<IPage<UserHouseLabelVO>> page(UserHouseLabelVO houseLabel, Query query) { |
| | | IPage<UserHouseLabelVO> pages = houseLabelService.selectHouseLabelPage(Condition.getPage(query), houseLabel); |
| | | return R.data(pages); |
| | | } |
| | | |