HouseAPI.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package com.template.api;
  2. import com.template.model.dto.HouseDto;
  3. import com.template.model.result.CommonResult;
  4. import io.swagger.annotations.ApiOperation;
  5. import org.springframework.web.bind.annotation.*;
  6. @RequestMapping("/auto/house")
  7. public interface HouseAPI {
  8. @PostMapping("/save")
  9. @ApiOperation(value = "房型添加", notes = "房型编辑", httpMethod = "POST")
  10. CommonResult save(@RequestBody HouseDto houseDto);
  11. @GetMapping("/list")
  12. @ApiOperation(value = "房型管理", notes = "房型管理", httpMethod = "GET")
  13. CommonResult getPage(int page, int size, int type, String keyWord);
  14. @GetMapping("/details")
  15. @ApiOperation(value = "房型编辑详情", notes = "房型编辑详情", httpMethod = "GET")
  16. CommonResult details(String houseId);
  17. @PostMapping("/update")
  18. @ApiOperation(value = "房型修改", notes = "房型修改", httpMethod = "POST")
  19. CommonResult update(@RequestBody HouseDto houseDto);
  20. @GetMapping("/delete")
  21. @ApiOperation(value = "房型删除", notes = "房型删除", httpMethod = "GET")
  22. CommonResult delete(@RequestParam String houseId,@RequestParam int adminId);
  23. /**
  24. * 门锁管理的房型的接口
  25. * @return
  26. */
  27. @GetMapping("/roomNameType")
  28. @ApiOperation(value = "房型类型", notes = "房型类型", httpMethod = "GET")
  29. CommonResult roomNameType();
  30. @GetMapping("/appletList")
  31. @ApiOperation(value = "小程序——房型管理", notes = "小程序——房型管理", httpMethod = "GET")
  32. CommonResult getAppletPage(int page, int size, int type,String startTime,String endTime);
  33. @GetMapping("/appletParticulars")
  34. @ApiOperation(value = "小程序——房型详情", notes = "小程序——房型详情", httpMethod = "GET")
  35. CommonResult getappletParticulars(@RequestParam Integer houseId);
  36. @GetMapping("/displayBar")
  37. @ApiOperation(value = "房型下拉列表", notes = "房型下拉列表", httpMethod = "GET")
  38. CommonResult displayBar(Integer type);
  39. }