package com.template.api; import com.template.model.dto.HouseDto; import com.template.model.result.CommonResult; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.*; @RequestMapping("/auto/house") public interface HouseAPI { @PostMapping("/save") @ApiOperation(value = "房型添加", notes = "房型编辑", httpMethod = "POST") CommonResult save(@RequestBody HouseDto houseDto); @GetMapping("/list") @ApiOperation(value = "房型管理", notes = "房型管理", httpMethod = "GET") CommonResult getPage(int page, int size, int type, String keyWord); @GetMapping("/details") @ApiOperation(value = "房型编辑详情", notes = "房型编辑详情", httpMethod = "GET") CommonResult details(String houseId); @PostMapping("/update") @ApiOperation(value = "房型修改", notes = "房型修改", httpMethod = "POST") CommonResult update(@RequestBody HouseDto houseDto); @GetMapping("/delete") @ApiOperation(value = "房型删除", notes = "房型删除", httpMethod = "GET") CommonResult delete(@RequestParam String houseId,@RequestParam int adminId); /** * 门锁管理的房型的接口 * @return */ @GetMapping("/roomNameType") @ApiOperation(value = "房型类型", notes = "房型类型", httpMethod = "GET") CommonResult roomNameType(); @GetMapping("/appletList") @ApiOperation(value = "小程序——房型管理", notes = "小程序——房型管理", httpMethod = "GET") CommonResult getAppletPage(int page, int size, int type,String startTime,String endTime); @GetMapping("/appletParticulars") @ApiOperation(value = "小程序——房型详情", notes = "小程序——房型详情", httpMethod = "GET") CommonResult getappletParticulars(@RequestParam Integer houseId); @GetMapping("/displayBar") @ApiOperation(value = "房型下拉列表", notes = "房型下拉列表", httpMethod = "GET") CommonResult displayBar(Integer type); }