2023-08-10 12:27:18 +08:00
|
|
|
from apiflask import Schema
|
2023-08-16 17:13:52 +08:00
|
|
|
from apiflask.fields import File, URL, String, Integer
|
2023-08-10 12:27:18 +08:00
|
|
|
|
|
|
|
|
2023-08-16 14:15:15 +08:00
|
|
|
class ImageIn(Schema):
|
|
|
|
image = File()
|
2023-08-10 12:27:18 +08:00
|
|
|
|
|
|
|
|
2023-08-16 17:13:52 +08:00
|
|
|
class ImagePreSignUrlIn(Schema):
|
|
|
|
avatar_id = String(required=True)
|
|
|
|
expire_time = Integer()
|
|
|
|
|
|
|
|
|
|
|
|
class ImagePreSignUrlOut(Schema):
|
2023-08-16 17:21:50 +08:00
|
|
|
image_presign_url = URL()
|
2023-08-10 12:27:18 +08:00
|
|
|
|
|
|
|
|