2023-09-18 16:29:24 +08:00
|
|
|
from apiflask import HTTPError
|
|
|
|
|
|
|
|
|
|
|
|
class AddInteractionError(HTTPError):
|
|
|
|
status_code = 500
|
2023-09-19 17:15:07 +08:00
|
|
|
message = 'add interaction failed.'
|
|
|
|
|
|
|
|
|
|
|
|
class InteractionTodayBriefNotFound(HTTPError):
|
|
|
|
status_code = 404
|
|
|
|
message = '找不到用户对应的食物记录'
|