You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
334 B
21 lines
334 B
|
3 years ago
|
#!/usr/bin/env python
|
||
|
|
# -*- coding: utf-8 -*-
|
||
|
|
# @Time : 2020/7/10 17:01
|
||
|
|
# @Author : CoderCharm
|
||
|
|
# @File : token_schema.py
|
||
|
|
# @Software: PyCharm
|
||
|
|
# @Desc :
|
||
|
|
"""
|
||
|
|
|
||
|
|
"""
|
||
|
|
|
||
|
|
from typing import Optional
|
||
|
|
from pydantic import BaseModel
|
||
|
|
|
||
|
|
class Token(BaseModel):
|
||
|
|
token: str
|
||
|
|
|
||
|
|
class TokenPayload(BaseModel):
|
||
|
|
sub: Optional[int] = None
|
||
|
|
|