pzx-web-api/app/api/v1/schema/api.py
BryantHe a21bd3aef5
All checks were successful
continuous-integration/drone/push Build is passing
feat: api get_presign_url 2
2023-08-16 17:21:50 +08:00

18 lines
296 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_presign_url = URL()