mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
22 lines
478 B
Python
22 lines
478 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from backend.common.enums import UserSocialType
|
|
from backend.common.schema import SchemaBase
|
|
|
|
|
|
class UserSocialSchemaBase(SchemaBase):
|
|
source: UserSocialType
|
|
open_id: str | None = None
|
|
uid: str | None = None
|
|
union_id: str | None = None
|
|
scope: str | None = None
|
|
code: str | None = None
|
|
|
|
|
|
class CreateUserSocialParam(UserSocialSchemaBase):
|
|
user_id: int
|
|
|
|
|
|
class UpdateUserSocialParam(SchemaBase):
|
|
pass
|