HealthCheckController.java
624 Bytes
package com.pipihelper.project.controller;
import com.pipihelper.project.core.Result;
import com.pipihelper.project.core.ResultGenerator;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Description: TODO
* @author: charles
* @date: 2022年06月29日 14:54
*/
@RestController
@RequestMapping("/pipitest")
public class HealthCheckController {
@PostMapping("/health-check")
public Result healthCheck(){
return ResultGenerator.genSuccessResult();
}
}