Closed yibbay closed 3 years ago
仅小建议,方便使用
暂无方案,应该要改代码吧
** 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, ...] **
仅小建议,方便使用
暂无方案,应该要改代码吧
** 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, ...] **