getEditInfo static method

Future<DataResult> getEditInfo(
  1. String userid, {
  2. required Map map,
  3. String gender = '0',
})

Implementation

static Future<DataResult> getEditInfo(
  String userid, {
  required Map map,
  String gender = '0',
}) async {
  Map other = {'userId': userid, 'gender': gender};
  other.addAll(map);

  var res = await BaseDao.fromBaseJson(other, NowAddress.getEditInfo());
  if (res.result) {
    return DataResult(res, true);
  }
  return res;
}