| | |
| | | package com.yeshi.fanli.controller.client.v1;
|
| | |
|
| | | import java.io.PrintWriter;
|
| | |
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | |
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | | @Controller
|
| | | @RequestMapping("api/v1")
|
| | | public class ApiController {
|
| | | @RequestMapping("hello")
|
| | | public void hello(AcceptData acceptData, PrintWriter out) {
|
| | | out.print(Constant.getAppName(acceptData.getPlatform(), acceptData.getVersion()));
|
| | | }
|
| | | }
|
| | | package com.yeshi.fanli.controller.client.v1; |
| | | |
| | | import java.io.PrintWriter; |
| | | |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import com.yeshi.fanli.entity.accept.AcceptData; |
| | | import com.yeshi.fanli.util.Constant; |
| | | |
| | | @Controller |
| | | @RequestMapping("api/v1") |
| | | public class ApiController { |
| | | @RequestMapping("hello") |
| | | public void hello(AcceptData acceptData, PrintWriter out) { |
| | | out.print(Constant.getAppName(acceptData.getPlatform(), acceptData.getVersion())); |
| | | } |
| | | } |