delUser static method

Future<DataResult> delUser(
  1. String? type,
  2. String? reason
)

删除账号

Implementation

static Future<DataResult> delUser(String? type, String? reason) async {
  Map other = {'type': type, 'reason': reason ?? ''};
  var res = await BaseDao.fromBaseJson(other, Address.delUser());
  if (res.result) {
    var entity = TokenEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}