refactor(bookmark): 重构书签服务入口文件并整合用户权限功能

将 bookmark.go 重命名为 main.go,并调整包引用路径。将 bookmarks 和 user_np
两个模块的处理逻辑合并到同一个服务中,统一注册路由。同时更新了相关 API
的引用路径,确保生成代码与内部实现正确绑定。

此外,移除了独立的 user_np 服务入口文件,其功能已整合至 bookmark 服务中。

配置文件中调整了 user_np 和 vfs 服务的端口及部分接口定义,完善了用户
相关操作的路径参数和请求体结构。
This commit is contained in:
zzy
2025-09-25 09:50:35 +08:00
parent 1e81e603de
commit 24f238f377
23 changed files with 1173 additions and 601 deletions

View File

@ -4,7 +4,7 @@ info:
description: 用户节点权限相关操作(user_name and password)
version: '1.0'
servers:
- url: http://localhost:8082/api
- url: http://localhost:8081/api
description: 开发环境
- url: https://api.zzyxyz.com/api
description: 生产环境
@ -90,8 +90,6 @@ components:
properties:
token:
type: string
expires_in:
type: integer
user_id:
type: integer
format: int64
@ -114,11 +112,14 @@ components:
required:
- old_password
- new_password
- user_name
properties:
old_password:
type: string
new_password:
type: string
user_name:
type: string
securitySchemes:
ApiKeyAuth: