pzx-web-api/app/api/v1/exception/interaction.py
BryantHe 8ca5843a62
All checks were successful
continuous-integration/drone/push Build is passing
fix: adjust api of add_interaction 2
2023-09-21 15:01:16 +08:00

11 lines
257 B
Python

from apiflask import HTTPError
class AddInteractionError(HTTPError):
status_code = 500
message = 'add interaction failed.'
class InteractionTodayBriefNotFound(HTTPError):
status_code = 404
message = '找不到用户对应的食物记录'