pzx-web-api/app/api/v1/schema/user.py

13 lines
255 B
Python
Raw Normal View History

2023-08-15 17:49:05 +08:00
from apiflask import Schema
2023-08-16 16:07:36 +08:00
from apiflask.fields import String, Float
2023-08-15 17:49:05 +08:00
class UserInfoIn(Schema):
nickname = String()
height = Float()
class UserInfoOut(Schema):
nickname = String()
avatar_id = String()
2023-08-18 14:55:30 +08:00
height = Float(allow_nan=True)