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

小小建议,1、增加组接口前缀; 2、增加全局接口响应格式,接口默认配置使用全局统一格式 #833

Closed
yibbay opened this issue Jul 23, 2021 · 0 comments

Comments

@yibbay
Copy link

yibbay commented Jul 23, 2021

仅小建议,方便使用

暂无方案,应该要改代码吧

**
1、增加组接口前缀,如该模块下配置接口前缀"/system", 则“/get” --> "/system/get"

2、增加全局接口响应格式,
如该仓库下配置全局响应格式,如:{code: "200", success: true, time: 1627003506512, data: $res},
响应模版为:[1, 2, 3, ...],
则实际响应返回为:
{code: "200", success: true, time: 1627003506512, data: [1, 2, 3, ...]
**

@yibbay yibbay closed this as completed Aug 23, 2021
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