Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
40
def
success(data=None, msg=
''
):
41
""
"成功返回格式"
""
42
return
base_response(200, msg, data)
43
44
45
def
fail(code=-1, msg=
''
, data=None):
Callers
15
user_add
Function · 0.90
user_del
Function · 0.90
user_update
Function · 0.90
set_role
Function · 0.90
user_info
Function · 0.90
account_login
Function · 0.90
get_access_log
Function · 0.90
update_user_info
Function · 0.90
avatar_upload
Function · 0.90
all_roles_options
Function · 0.90
create_role
Function · 0.90
delete_role
Function · 0.90
Calls
1
base_response
Function · 0.85
Tested by
no test coverage detected