pzx-web-api/app/api/v1/schema/api.py
BryantHe f613848d4c
All checks were successful
continuous-integration/drone/push Build is passing
add: api for profiling
2023-10-26 11:03:50 +08:00

31 lines
470 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()
class ProfilingIn(Schema):
token = String()