getList static method
获取列表
Implementation
static Future<DataResult> getList(
int type, int page, int languageId, int size) async {
Map other = {
'type': type,
'num': page,
'size': size,
'language': languageId != 0 ? [languageId] : [],
'isAnchor': 1,
'sortFlag': 1
};
var res = await BaseDao.fromBaseEncryptV3(other, Address.getListV3());
if (res.result) {
var entity = MainListEntity.fromJson(res.data);
return DataResult(entity, true);
}
return res;
}