pzx-web-api/app/api/v1/schema/auth.py

21 lines
403 B
Python
Raw Normal View History

2023-08-11 16:36:56 +08:00
from apiflask import Schema
from apiflask.fields import String
class WechatLoginIn(Schema):
code = String(required=True)
class WechatLoginOut(Schema):
access_token = String()
refresh_token = String()
2023-08-11 17:16:58 +08:00
nickname = String()
2023-08-11 16:36:56 +08:00
class RefreshTokenIn(Schema):
refresh_token = String(required=True)
class RefreshTokenOut(Schema):
access_token = String()
refresh_token = String()