zhitong.yu
2024-12-27 21e0b93688de2a98abe3b7b9c0cfed6efdc21183
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);}
}