package com.yuchen.saas.park.service.controller.renovation;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.yuchen.saas.park.api.dto.renovation.SaasParkPropertyHouseRenovationHandleTypeDto;
import com.yuchen.saas.park.api.vo.renovation.SaasParkPropertyHouseRenovationHandleTypeVo;
import com.yuchen.saas.park.service.service.renovation.ISaasParkPropertyHouseRenovationHandleTypeService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nest.springwrap.core.mp.support.Query;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * <p>
 * 房源-装修办理类型表 前端控制器
 * </p>
 *
 * @author baichaojie
 * @since 2024-12-02
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/saasParkPropertyHouseRenovationHandleType")
public class SaasParkPropertyHouseRenovationHandleTypeController {

    private final ISaasParkPropertyHouseRenovationHandleTypeService baseService;



    /**
     * 房源-装修办理类型表 列表查询(根据parkId获取装修办理类型表)
     * @param saasParkPropertyHouseRenovationHandleTypeDto
     * @param query
     * @return
     */
    @GetMapping("/pageByParam")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "房源-装修办理类型表 列表查询(根据parkId获取装修办理类型表) ", notes = "房源-装修办理类型表  列表查询(根据parkId获取装修办理类型表)")
    public R<IPage<SaasParkPropertyHouseRenovationHandleTypeVo>> pageByParam(@Valid SaasParkPropertyHouseRenovationHandleTypeDto saasParkPropertyHouseRenovationHandleTypeDto, Query query) {
        R<IPage<SaasParkPropertyHouseRenovationHandleTypeVo>> pages =baseService.getList(saasParkPropertyHouseRenovationHandleTypeDto, query);
        return pages;
    }


}
