package kr.wisestone.owl.web.controller; import kr.wisestone.owl.constant.Constants; import kr.wisestone.owl.service.UserInviteService; import kr.wisestone.owl.web.form.UserInviteForm; import org.springframework.beans.factory.annotation.Autowired; 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.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import java.util.HashMap; import java.util.Map; /** * Created by wisestone on 2018-08-31. */ @Controller public class UserInviteController extends BaseController { @Autowired private UserInviteService userInviteService; // 사용자 초대 @RequestMapping(value = "/userInvite/invite", method = RequestMethod.POST) public @ResponseBody Map invite(@RequestBody Map> params) { Map resJsonData = new HashMap<>(); this.userInviteService.inviteWorkspace(UserInviteForm.make(params.get(Constants.REQ_KEY_CONTENT))); return this.setSuccessMessage(resJsonData); } }