package com.panzhihua.service_jinhui_community.api;
|
|
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.common.model.vos.jinhui.JinhuiConfigVO;
|
import com.panzhihua.service_jinhui_community.service.JinhuiConfigService;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.web.bind.annotation.*;
|
|
import javax.annotation.Resource;
|
|
@Slf4j
|
@RestController
|
@RequestMapping("/jinhuiConfig")
|
public class JinhuiConfigApi
|
{
|
|
@Resource
|
private JinhuiConfigService configService;
|
|
@GetMapping("/configGetDetails")
|
public R configGetDetails(@RequestParam("communityId") String communityId)
|
{
|
return R.ok(configService.getDetails(communityId));
|
}
|
|
/**
|
* 新增
|
* @param
|
* @return
|
*/
|
@PostMapping("/configAddData")
|
public R configAddData(@RequestBody JinhuiConfigVO item)
|
{
|
return configService.addData(item);
|
}
|
|
@PostMapping("/configEditData")
|
public R configEditData(@RequestBody JinhuiConfigVO item)
|
{
|
return configService.editData(item);
|
}
|
|
@DeleteMapping("/configExpurgateData")
|
public R configExpurgateData(@RequestParam("communityId") String communityId)
|
{
|
return configService.expurgateData(communityId);
|
}
|
|
}
|