package com.dbnt.faisp.kwms; import com.dbnt.faisp.kwms.model.VEmployee; import com.dbnt.faisp.kwms.service.KwmsService; import com.dbnt.faisp.main.userInfo.model.UserInfo; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequiredArgsConstructor @RequestMapping("/kwms") public class KwmsController { private final KwmsService kwmsService; @GetMapping("/getEmpInfo") public UserInfo getEmpInfo(VEmployee empInfo){ return kwmsService.selectEmpInfo(empInfo.getDicCode()); } }