pzx-web-api/app/api/v1/exception/interaction.py
BryantHe ca04e70d53
All checks were successful
continuous-integration/drone/push Build is passing
fix: adjust api of add_interaction
2023-09-21 14:53:37 +08:00

16 lines
379 B
Python

from apiflask import HTTPError
class AddInteractionError(HTTPError):
status_code = 500
message = 'add interaction failed.'
class InteractionExistedError(HTTPError):
status_code = 401
message = '已经提交过,不能再次提交~'
class InteractionTodayBriefNotFound(HTTPError):
status_code = 404
message = '找不到用户对应的食物记录'