Commit bb0b8719 by fanjiaxin

代码初始化

parent c3a87f0f
Pipeline #71443 passed with stages
in 58 seconds
package com.netease.yanxuan.wx.store.sharer.web.controller; package com.netease.yanxuan.wx.store.sharer.web.controller;
import org.springframework.http.HttpStatus; import com.netease.yanxuan.wx.store.sharer.common.core.Result;
import org.springframework.http.ResponseEntity;
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;
...@@ -20,7 +19,7 @@ public class HealthCheckController { ...@@ -20,7 +19,7 @@ public class HealthCheckController {
* @return HttpStatus.OK 表示成功 * @return HttpStatus.OK 表示成功
*/ */
@RequestMapping("/i/health") @RequestMapping("/i/health")
public ResponseEntity checkHealth() { public Result<Void> checkHealth() {
return new ResponseEntity(HttpStatus.OK); return Result.ok();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment