delUser static method
删除账号
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;
}