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

18 lines
288 B
Python

from apiflask import Schema
from apiflask.fields import File, URL, String, Integer
class ImageIn(Schema):
image = File()
class ImagePreSignUrlIn(Schema):
avatar_id = String(required=True)
expire_time = Integer()
class ImagePreSignUrlOut(Schema):
image_url = URL()