|
|
@@ -1,25 +0,0 @@
|
|
|
-package com.nju.edu.pay.controller.api;
|
|
|
-
|
|
|
-import com.nju.edu.pay.web.response.Response;
|
|
|
-import com.nju.edu.pay.web.response.SuccessResponse;
|
|
|
-import lombok.AllArgsConstructor;
|
|
|
-import lombok.Data;
|
|
|
-import lombok.NoArgsConstructor;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
-@RestController
|
|
|
-@RequestMapping("/index")
|
|
|
-public class HelloWorldController {
|
|
|
-
|
|
|
- @PostMapping("/hello")
|
|
|
- public Response hello(@RequestBody Msg msg){
|
|
|
- return new SuccessResponse(msg);
|
|
|
- }
|
|
|
-
|
|
|
- @Data
|
|
|
- @AllArgsConstructor
|
|
|
- @NoArgsConstructor
|
|
|
- public static class Msg{
|
|
|
- private String msg;
|
|
|
- }
|
|
|
-}
|