package selling.sunshine.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import selling.sunshine.utils.ResultData;

/**
 * Created by sunshine on 7/14/16.
 */
@RequestMapping("/message")
@RestController
public class MessageController {
    private Logger logger = LoggerFactory.getLogger(MessageController.class);

    public ResultData message() {
        ResultData result = new ResultData();

        return result;
    }
}

@@ -200,28 +200,143 @@
 ation.Re
-stController
+questMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0Aimport org.springframework.web.servlet.ModelAndView
 ;%0Aimport
@@ -567,24 +567,318 @@
 er.class);%0A%0A
+    @RequestMapping(method = RequestMethod.GET, value = %22/send%22)%0A    public ModelAndView message() %7B%0A        ModelAndView view = new ModelAndView();%0A        view.setViewName(%22/backend/message/send%22);%0A        return view;%0A    %7D%0A%0A    @RequestMapping(method = RequestMethod.POST, value = %22/send%22)%0A
     public R
@@ -887,32 +887,43 @@
 ultData message(
+String text
 ) %7B%0A        Resu

add message controller