RODY/app/utils/StandardizedOutput.py

6 lines
165 B
Python
Raw Normal View History

2022-11-04 17:37:08 +08:00
from flask import jsonify
def output_wrapped(status: int = 0, message: str = "", data: object = None):
return jsonify(code=status, message=message, data=data)