MCPcopy Create free account
hub / github.com/baiwumm/react-admin / responseMessage

Function responseMessage

Xmw_server/src/utils/index.ts:20–26  ·  view source on GitHub ↗
(
  data,
  msg: string = REQUEST_MSG.SUCCESS,
  code: number = REQUEST_CODE.SUCCESS,
)

Source from the content-addressed store, hash-verified

18 * @author: 白雾茫茫丶
19 */
20export const responseMessage = <T = any>(
21 data,
22 msg: string = REQUEST_MSG.SUCCESS,
23 code: number = REQUEST_CODE.SUCCESS,
24): Response<T> => {
25 return { data, msg, code };
26};
27
28/**
29 * @description: 将数组转成树形数据

Callers 15

uploadFileMethod · 0.90
oosMethod · 0.90
validateUserMethod · 0.90
logoutMethod · 0.90
getPermissionsMethod · 0.90
getRoutesMenusMethod · 0.90
getCurrentUserInfoMethod · 0.90
getCaptchaMethod · 0.90
getJobsListMethod · 0.90
createJobsMethod · 0.90
updateJobsMethod · 0.90
deleteJobsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected