@sqin/net
v1.0.3
Published
```ts import { okk, nok } from "@sqin/net";
Downloads
4
Readme
个人的 http 网络封装相关
import { okk, nok } from "@sqin/net";
okk("张三");
// { code: 200, ok: true, msg: '操作成功', data: '张三' }
nok("错误");
// { code: 400, ok: false, msg: '请求失败' }
nok("错误", { data: "李四" });
const result = {
...okk(),
任意字段: "随意发挥",
};