package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.NjHomeConfig;
|
import com.whyc.service.NjHomeConfigService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.List;
|
|
@RestController
|
@Api(tags = "首页信息配置")
|
@RequestMapping("njHomeConfig")
|
public class NjHomeConfigController {
|
@Autowired
|
private NjHomeConfigService service;
|
|
@GetMapping("getAllConfig")
|
@ApiOperation("获取首页配置信息")
|
public Response getAllConfig(){
|
return service.getAllConfig();
|
}
|
|
@PostMapping("alterConfig")
|
@ApiOperation("编辑首页配置信息")
|
public Response updateConfig(@RequestBody List<NjHomeConfig> list){
|
return service.updateConfig(list);
|
}
|
|
}
|