|
1 | 1 | # SKGenerateModelTool
|
2 | 2 |
|
3 |
| - |
| 3 | +[](https://github.com/Xcoder1011/SKGenerateModelTool/blob/master/SKGenerateModelTool.dmg)    |
4 | 4 |
|
5 | 5 | - 支持Objective-C / Swift / Dart
|
6 | 6 | - 支持通过URL链接或json字符串一键生成model文件
|
|
12 | 12 | - 类驼峰命名
|
13 | 13 | - Flutter Model解析兼容了服务端返回string/int/double时数据类型混用的情况
|
14 | 14 |
|
15 |
| - |
16 | 15 | - Support OC / Swift / Dart
|
17 | 16 | - Supports one-click generation of model files through URL links or json strings
|
18 | 17 | - Support string encryption (different keys can be set, developers can modify the encryption algorithm)
|
|
23 | 22 | - Supports hump naming
|
24 | 23 | - Flutter model parsing is compatible with mixed data types when the server returns string / int / double
|
25 | 24 |
|
| 25 | + |
| 26 | + |
| 27 | + |
26 | 28 | ###### 生成Flutter Dart Model
|
27 | 29 |
|
28 | 30 | ```
|
@@ -124,17 +126,17 @@ Map<String, dynamic> _$SKDataModelToJson(SKDataModel instance) {
|
124 | 126 | ```
|
125 | 127 |
|
126 | 128 | ###### Flutter Model header
|
127 |
| - |
| 129 | + |
128 | 130 |
|
129 | 131 | ###### 字符串加密示例
|
130 |
| - |
| 132 | + |
131 | 133 |
|
132 | 134 | 加密后的内容添加到项目中(声明和定义可以分别放.h和.m),因为代码依赖SKEncryptString结构体,所以需要导入头文件**SKEncryptHeader.h**引用。
|
133 | 135 |
|
134 | 136 | > 只需把此头文件(SKEncryptHeader.h)加入到项目,并在pch文件中导入该头文件即可使用;
|
135 | 137 | Just add this header file (SKEncryptHeader.h) to the project and import the header file in the pch file to use;
|
136 | 138 |
|
137 |
| - |
| 139 | + |
138 | 140 |
|
139 | 141 | 加密后的数据申明:
|
140 | 142 |
|
@@ -188,7 +190,7 @@ const SKEncryptString * const _3908173925 = &(SKEncryptString){
|
188 | 190 | }
|
189 | 191 | ```
|
190 | 192 |
|
191 |
| - |
| 193 | + |
192 | 194 |
|
193 | 195 | Tip:本工具仅用到简单的XOR加密算法,开发者可自行下载项目进行加密算法修改,另外也可直接下载项目里的dmg文件进行安装使用。
|
194 | 196 |
|
|
0 commit comments