getList static method

Future<DataResult> getList(
  1. int type,
  2. int page,
  3. int languageId,
  4. int size,
)

获取列表

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;
}