MCPcopy
hub / github.com/wechaty/python-wechaty / success

Function success

src/wechaty/schema.py:64–73  ·  view source on GitHub ↗

make the success response with data Args: data (dict): the data of response

(data: Any)

Source from the content-addressed store, hash-verified

62
63
64def success(data: Any) -> Response:
65 """make the success response with data
66
67 Args:
68 data (dict): the data of response
69 """
70 return jsonify(dict(
71 code=200,
72 data=data
73 ))
74
75
76def error(msg: str) -> Response:

Callers 4

get_plugins_navMethod · 0.90
change_statusMethod · 0.90
get_plugin_settingMethod · 0.90
update_plugin_settingMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected