package com.siwei.apply.controller; import com.siwei.apply.domain.Jsydghxk; import com.siwei.apply.service.JsydghxkService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; /** * 建设用地规划许可 控制器 */ @RestController @RequestMapping("/jsydghxk") public class JsydghxkController { @Autowired private JsydghxkService jsydghxkService; @PostMapping("/add") public String add(@RequestBody Jsydghxk jsydghxk) { return jsydghxkService.add(jsydghxk); } @GetMapping("/get/{id}") public Jsydghxk get(@PathVariable String id) { return jsydghxkService.get(id); } @PostMapping("/update") public void update(@RequestBody Jsydghxk jsydghxk) { jsydghxkService.update(jsydghxk); } }