Skip to content

Commit c956ecf

Browse files
committed
补充提交去除可选字段多余标识
1 parent 4a697fc commit c956ecf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/app/api/jwt_security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def verity_password(plain_password: str, hashed_password: str) -> bool:
3838
return pwd_context.verify(plain_password, hashed_password)
3939

4040

41-
def create_access_token(data: Union[int, Any], expires_delta: Optional[timedelta] = None) -> str:
41+
def create_access_token(data: Union[int, Any], expires_delta: Optional[timedelta]) -> str:
4242
"""
4343
生成加密 token
4444
:param data: 传进来的值

backend/app/schemas/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
class ResponseBase(BaseModel):
17-
data: Optional[Any] = None
17+
data: Optional[Any]
1818

1919

2020
class Response200(ResponseBase):

0 commit comments

Comments
 (0)