package com.hxzk.controller; import com.hxzk.deo.PersonDto; import com.hxzk.deo.PersonPostion; import com.hxzk.deo.TbPerson; import com.hxzk.deo.WarningPostion; import com.hxzk.pojo.TbZypHandel; import com.hxzk.service.ZypHandelService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; @RestController @RequestMapping("/") public class ZypHandelController { @Autowired ZypHandelService zypHandelService; @GetMapping("UpXuanZe") public void XuanZeJieShouRen(TbZypHandel zypHandel){ zypHandelService.XuanZeJieShouRen(zypHandel); } @GetMapping("findCodeHandel") public List findCodeHandel(TbZypHandel zypHandel){ return zypHandelService.findCodeHandel(zypHandel); } @PostMapping("PersonPostion") public String PersonPostion(@RequestBody PersonPostion person){ System.out.println(person); return "success123456"; } @PostMapping("WarningPostion") public String WarningPostion(@RequestBody WarningPostion warningPostion){ System.out.println(warningPostion); return "success123456"; } @PostMapping("Person") public String Person(@RequestBody PersonDto personDto){ System.out.println(personDto); return "success123456"; } }