pzx-web-api/app/api/v1/schema/api.py
BryantHe 3b3365fcfb
All checks were successful
continuous-integration/drone/push Build is passing
fix: adjust upload_diet_image
2023-09-20 16:09:05 +08:00

27 lines
420 B
Python

from apiflask import Schema
from apiflask.fields import File, URL, String, Integer
class ImageIn(Schema):
image = File()
class DietImageIn(Schema):
image = File()
category = Integer()
class ImagePreSignUrlIn(Schema):
image_id = String(required=True)
expire_time = Integer()
class ImagePreSignUrlOut(Schema):
image_presign_url = URL()
class ImageIdOut(Schema):
image_id = String()