feat: add api auth
This commit is contained in:
20
app/api/v1/schema/auth.py
Normal file
20
app/api/v1/schema/auth.py
Normal 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()
|
Reference in New Issue
Block a user