Closed JmoVxia closed 3 years ago
为什么 JSON 转 Model 的时候 需要 下划线转为驼峰,是哪个库支持下划线可以自动解析驼峰?
JSONDecoder convertFromSnakeCase // 编码策略 使用从蛇形转化为大写 encode时同样也可降驼峰命名法转化为下划线
嗯嗯,如果是这样的话,需要在设置页面增加一个设置项,是否开启这个策略,因为 并不是所有的项目都是需要强制下划线转驼峰
恩,可以弄一个设置开关
为什么 JSON 转 Model 的时候 需要 下划线转为驼峰,是哪个库支持下划线可以自动解析驼峰?