package kr.wisestone.owl.web.controller; import kr.wisestone.owl.constant.Constants; import kr.wisestone.owl.service.SystemEmailService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import java.util.HashMap; import java.util.Map; /** * Create By J E O N G - S U N / 2019-05-21 */ @Controller public class SystemEmailController extends BaseController{ @Autowired private SystemEmailService systemEmailService; // 문의하기 @RequestMapping(value = "/systemEmail/information", produces = MediaType.APPLICATION_JSON_VALUE) public @ResponseBody Map information(@RequestBody Map> params) { Map resJsonData = new HashMap<>(); this.systemEmailService.information(params.get(Constants.REQ_KEY_CONTENT)); return this.setSuccessMessage(resJsonData); } }