Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接口文档咨询 #4

Open
Developer27149 opened this issue Oct 26, 2021 · 0 comments
Open

接口文档咨询 #4

Developer27149 opened this issue Oct 26, 2021 · 0 comments

Comments

@Developer27149
Copy link

ctx.api(data, {
    code: 0,
    msg: 'something'
})

以上写法跳过了状态码,基本上状态码都是 200 的话其实可以将参数放到最后。
文档却写着如上的代码示例,实在是很有必要修改。
我喜欢您的这个库,因为我是一个后端新手。
同时为您平时太忙而忽略了处理自己的库的 issue 而感到遗憾。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant