This commit is contained in:
oneao committed 2026-02-26 17:31:08 +08:00
1 parent 4ce951dd56
commit 8a3dea8545
44 files changed
+1599 -30

No files matched your search

@@ -224,6 +224,7 @@ func registerUser(ctx context.Context, c *app.RequestContext, openid, nickname,
Username: nickname,
Avatar: avatar,
}
response.Success(c).Data(resp).Send()
}
@@ -52,6 +52,7 @@ func Auth() app.HandlerFunc {
user := &ContextUser{
UserID: userID,
}
ctx = setContextUser(ctx, user)
c.Next(ctx)
@@ -12,7 +12,6 @@ DELETE FROM space WHERE id = $1;
-- name: GetSpaceById :one
SELECT * FROM space WHERE id = $1;
-- 查询用户所在的空间信息
-- name: GetSpaceByUserId :one
SELECT s.*, m.role