|
|
@@ -0,0 +1,38 @@
|
|
|
+package cn.reghao.tnb.user.app.controller;
|
|
|
+
|
|
|
+import cn.reghao.jutil.web.WebResult;
|
|
|
+import cn.reghao.tnb.account.api.dto.CrawledUser;
|
|
|
+import cn.reghao.tnb.user.api.iface.AdminUserService;
|
|
|
+import cn.reghao.tnb.user.app.service.CrawledUserService;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.http.MediaType;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author reghao
|
|
|
+ * @date 2025-08-19 07:35:20
|
|
|
+ */
|
|
|
+@Tag(name = "用户管理接口")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/api/user/admin")
|
|
|
+public class AdminUserController {
|
|
|
+ private AdminUserService adminUserService;
|
|
|
+
|
|
|
+ public AdminUserController(AdminUserService adminUserService) {
|
|
|
+ this.adminUserService = adminUserService;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "创建 bilibili 用户帐号", description = "N")
|
|
|
+ @PostMapping("/create/bili")
|
|
|
+ public String updateUserProfile(@RequestBody @Validated CrawledUser crawledUser) {
|
|
|
+ return WebResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "查找 bilibili 用户", description = "N")
|
|
|
+ @GetMapping(value = "/search", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ public String searchUser(@RequestParam("username") String username) {
|
|
|
+ return WebResult.success();
|
|
|
+ }
|
|
|
+}
|