@@ -972,13 +972,13 @@ var CodeUtil = {
972972
973973 s += '\n\n//回调实体类'
974974 + '\n@Keep'
975- + '\nopen class ' + responseType + '<T, M, L > : BaseResponse<T, M, L > {'
975+ + '\nopen class ' + responseType + '<T> : BaseResponse<T> {'
976976 + '\n' + nextPadding + '@Transient'
977977 + '\n' + nextPadding + 'open var ' + varName + ': ' + dataType + CodeUtil . initEmptyValue4Type ( dataType , true , true ) + '\n'
978978 + '\n}\n'
979979 + '\n//通用 HTTP 解析实体基类,全局存一份'
980980 + '\n@Keep'
981- + '\nopen class BaseResponse<T, M, L > {'
981+ + '\nopen class BaseResponse<T> {'
982982 + '\n' + nextPadding + '@Transient'
983983 + '\n' + nextPadding + 'open var code: Int' + CodeUtil . initEmptyValue4Type ( 'Int' , true , true ) + '\n'
984984 + '\n' + nextPadding + '@Transient'
@@ -1166,40 +1166,40 @@ var CodeUtil = {
11661166 }
11671167
11681168 s += '\n\n' +
1169- 'public class ' + responseType + '<T, M, L > extends Response<T, M, L > {\n' +
1169+ 'public class ' + responseType + '<T> extends Response<T> {\n' +
11701170 nextPrefix + 'private ' + dataType + ' ' + varName + ';\n\n' +
11711171 nextPrefix + 'public ' + dataType + ' get' + modelName + '() {\n' +
11721172 nextNextPrefix + 'return ' + varName + ';\n' +
11731173 nextPrefix + '}\n' +
1174- nextPrefix + 'public ' + responseType + '<T, M, L > set' + modelName + '(' + dataType + ' ' + varName + ') {\n' +
1174+ nextPrefix + 'public ' + responseType + '<T> set' + modelName + '(' + dataType + ' ' + varName + ') {\n' +
11751175 nextNextPrefix + 'this.' + varName + ' = ' + varName + ';\n' +
11761176 nextNextPrefix + 'return this;\n' +
11771177 nextPrefix + '}\n' +
11781178 '}' ;
11791179
11801180 s += '\n\n' +
1181- 'public class Response<T, M, L > {\n' +
1181+ 'public class Response<T> {\n' +
11821182 nextPrefix + 'private int code;\n' +
11831183 nextPrefix + 'private String msg;\n' +
11841184 nextPrefix + 'private T data;\n\n' +
11851185 nextPrefix + 'public int getCode() {\n' +
11861186 nextNextPrefix + 'return code;\n' +
11871187 nextPrefix + '}\n' +
1188- nextPrefix + 'public Response<T, M, L > setCode(int code) {\n' +
1188+ nextPrefix + 'public Response<T> setCode(int code) {\n' +
11891189 nextNextPrefix + 'this.code = code;\n' +
11901190 nextNextPrefix + 'return this;\n' +
11911191 nextPrefix + '}\n\n' +
11921192 nextPrefix + 'public String getMsg() {\n' +
11931193 nextNextPrefix + 'return msg;\n' +
11941194 nextPrefix + '}\n' +
1195- nextPrefix + 'public Response<T, M, L > setMsg(String msg) {\n' +
1195+ nextPrefix + 'public Response<T> setMsg(String msg) {\n' +
11961196 nextNextPrefix + 'this.msg = msg;\n' +
11971197 nextNextPrefix + 'return this;\n' +
11981198 nextPrefix + '}\n\n' +
11991199 nextPrefix + 'public T getData() {\n' +
12001200 nextNextPrefix + 'return data;\n' +
12011201 nextPrefix + '}\n' +
1202- nextPrefix + 'public Response<T, M, L > setData(T data) {\n' +
1202+ nextPrefix + 'public Response<T> setData(T data) {\n' +
12031203 nextNextPrefix + 'this.data = data;\n' +
12041204 nextNextPrefix + 'return this;\n' +
12051205 nextPrefix + '}\n' +
@@ -6783,7 +6783,7 @@ res_data = rep.json()
67836783 var typeOfValue = CodeUtil . getType4Request ( value ) ;
67846784 var isValueNotArray = typeOfValue != 'array' ;
67856785 var isValueNotObject = typeOfValue != 'object' ;
6786-
6786+
67876787 if ( standardObj != null ) {
67886788 var parentObj = pathKeys == null || pathKeys . length <= 0 ? null : JSONResponse . getStandardByPath ( standardObj , pathKeys . slice ( 0 , pathKeys . length - 1 ) ) ;
67896789 var targetValues = parentObj == null ? null : parentObj . values ;
0 commit comments