first commit

This commit is contained in:
heyethereum
2024-06-17 16:47:30 +08:00
commit 29e0958635
13 changed files with 637 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package com.safeqr.app.user.controller;
import com.safeqr.app.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/v1")
public class UserController {
@Autowired
UserService userService;
@GetMapping(value = "/version", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<String> version() {
System.out.println(userService.getUserByEmail());
return ResponseEntity.ok("SafeQR v1.0.0");
}
}