代码调整
This commit is contained in:
parent
6a03551107
commit
b36d9a7ee5
@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.DeleteMapping;
|
|||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@ -40,7 +41,7 @@ public class DeviceAreaConfigController {
|
|||||||
@SecurityRequirement(name = "jwt")
|
@SecurityRequirement(name = "jwt")
|
||||||
@Operation(summary = "保存修改")
|
@Operation(summary = "保存修改")
|
||||||
@PostMapping("/save")
|
@PostMapping("/save")
|
||||||
public String save(DeviceAreaConfigDto dto) {
|
public String save(@RequestBody DeviceAreaConfigDto dto) {
|
||||||
this.areaConfigService.saveOrUpdate(dto);
|
this.areaConfigService.saveOrUpdate(dto);
|
||||||
return "ok";
|
return "ok";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user