初始化
parent
06d0063ceb
commit
508f781f65
|
@ -0,0 +1,26 @@
|
|||
package com.muyu.cloud.pay.controller;
|
||||
|
||||
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.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @ClassName TestController
|
||||
* @Description 描述
|
||||
* @Author Chen
|
||||
* @Date 2024/7/29 20:33
|
||||
*/
|
||||
@RequestMapping("/test")
|
||||
@RestController
|
||||
public class TestController {
|
||||
@PostMapping
|
||||
public Result<String> post(){
|
||||
return Result.success("测试Post 成功");
|
||||
}
|
||||
@GetMapping
|
||||
public Result<String> get(){
|
||||
return Result.success("测试Get成功");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue