feat: add api auth

This commit is contained in:
2023-08-11 16:36:56 +08:00
parent 99cc82b9e7
commit fb46ba4395
5 changed files with 68 additions and 1 deletions

20
app/api/v1/schema/auth.py Normal file
View File

@@ -0,0 +1,20 @@
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()
class RefreshTokenIn(Schema):
refresh_token = String(required=True)
class RefreshTokenOut(Schema):
access_token = String()
refresh_token = String()