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

18 lines
288 B
Python
Raw Normal View History

2023-08-10 12:27:18 +08:00
from apiflask import Schema
2023-08-16 17:13:52 +08:00
from apiflask.fields import File, URL, String, Integer
2023-08-10 12:27:18 +08:00
class ImageIn(Schema):
image = File()
2023-08-10 12:27:18 +08:00
2023-08-16 17:13:52 +08:00
class ImagePreSignUrlIn(Schema):
avatar_id = String(required=True)
expire_time = Integer()
class ImagePreSignUrlOut(Schema):
image_url = URL()
2023-08-10 12:27:18 +08:00