master
Cui YongXing 2024-07-29 21:11:05 +08:00
parent cd48a1e974
commit b66b16bbf5
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.muyu.pay.server.controller; package com.muyu.pay.server.controller;
import com.muyu.common.core.domain.Result; import com.muyu.common.core.domain.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -14,7 +15,7 @@ public class TestController {
return Result.success("post成功"); return Result.success("post成功");
} }
@PostMapping("get") @GetMapping("get")
public Result<String> get(){ public Result<String> get(){
return Result.success("get成功"); return Result.success("get成功");
} }