package com.hxzk.controller; import com.hxzk.pojo.TbHomeSetting; import com.hxzk.service.HomeSettingService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/") public class HomeSettingController { @Autowired HomeSettingService homeSettingService; @GetMapping("findHomeSetting") public TbHomeSetting findHomeSetting(){ return homeSettingService.findHomeSetting(); } @PostMapping("UpdateHomeSettingShow") public Integer UpdateHomeSettingShow(TbHomeSetting homeSetting){return homeSettingService.UpdateHomeSettingShow(homeSetting);} }