feat: 更新网络请求工具函数
This commit is contained in:
parent
f89feffaba
commit
e3c188c1b7
@ -226,6 +226,6 @@ netTool.serverError = (msg: string, data?: any, requestId?: string) =>
|
||||
* @returns 一个表示200 OK的响应对象。
|
||||
*/
|
||||
netTool.ok = (data?: any, requestId?: string) =>
|
||||
Response.json({ code: 200, msg: "ok", data, requestId });
|
||||
Response.json({ code: 0, msg: "success", data, requestId });
|
||||
|
||||
export default netTool;
|
||||
|
Loading…
x
Reference in New Issue
Block a user