|
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()
|
|
|
|
|