package com.takensoft.ums.web; import com.takensoft.common.message.MessageCode; import com.takensoft.common.util.ResponseData; import com.takensoft.common.util.ResponseUtil; import com.takensoft.ums.service.UmsService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.nio.charset.Charset; import java.util.HashMap; import java.util.Map; /** * @author 방선주 * @since 2024.06.25 * @modification * since | author | description * 2024.06.25 | 방선주 | 최초 등록 * * UmsController - 문자 메시지 전송을 위한 컨트롤러 */ @RestController @RequiredArgsConstructor @Slf4j @RequestMapping(value="/ums") public class UmsController { private final ResponseUtil resUtil; private final UmsService umsService; // 문자 메시지 테이블 확인 @PostMapping(value="/saveUmsInfo.json") public ResponseEntity saveUmsInfo() throws Exception { // 목록 조회 // Map result = umsService.findAll(); Map result = umsService.save(); // 응답처리 return resUtil.successRes(result, MessageCode.COMMON_SUCCESS); } }