MCPcopy Create free account
hub / github.com/binkuolo/fastapi / success

Function success

core/Response.py:40–42  ·  view source on GitHub ↗

成功返回格式

(data=None, msg='')

Source from the content-addressed store, hash-verified

38
39
40def success(data=None, msg=''):
41 """成功返回格式"""
42 return base_response(200, msg, data)
43
44
45def fail(code=-1, msg='', data=None):

Callers 15

user_addFunction · 0.90
user_delFunction · 0.90
user_updateFunction · 0.90
set_roleFunction · 0.90
user_infoFunction · 0.90
account_loginFunction · 0.90
get_access_logFunction · 0.90
update_user_infoFunction · 0.90
avatar_uploadFunction · 0.90
all_roles_optionsFunction · 0.90
create_roleFunction · 0.90
delete_roleFunction · 0.90

Calls 1

base_responseFunction · 0.85

Tested by

no test coverage detected