新增用户授权功能

This commit is contained in:
18610128193
2026-06-11 18:21:20 +08:00
parent 2669b05c31
commit bb1d184363
8 changed files with 641 additions and 321 deletions
+3
View File
@@ -24,6 +24,9 @@ class UserOAuth(Base, TimestampMixin, SoftDeleteMixin):
account_username: Mapped[str | None] = mapped_column(
String(128), nullable=True, comment="授权账户登录账号"
)
account_userid: Mapped[str | None] = mapped_column(
String(128), nullable=True, comment="授权账户登录userid,同一个用户不同的授权账户token不一样"
)
user_id: Mapped[str] = mapped_column(
String(32), nullable=False, index=True,
comment="用户id"