mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
send_invite_user
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
|
||||
import 'package:syncrow_web/pages/roles_and_permission/model/role_type_model.dart';
|
||||
import 'package:syncrow_web/pages/roles_and_permission/users_page/view/roles_and_permission.dart';
|
||||
import 'package:syncrow_web/services/api/http_service.dart';
|
||||
@ -33,4 +32,32 @@ class UserPermissionApi {
|
||||
);
|
||||
return response ?? [];
|
||||
}
|
||||
|
||||
Future sendInviteUser({
|
||||
String? firstName,
|
||||
String? lastName,
|
||||
String? email,
|
||||
String? jobTitle,
|
||||
String? phoneNumber,
|
||||
String? roleUuid,
|
||||
List<String>? spaceUuids,
|
||||
}) async {
|
||||
final response = await _httpService.post(
|
||||
path: ApiEndpoints.permission,
|
||||
showServerMessage: true,
|
||||
body: {
|
||||
"firstName": firstName,
|
||||
"lastName": lastName,
|
||||
"email": email,
|
||||
"jobTitle": jobTitle,
|
||||
"phoneNumber": phoneNumber,
|
||||
"roleUuid": roleUuid,
|
||||
"spaceUuids": spaceUuids
|
||||
},
|
||||
expectedResponseModel: (json) {
|
||||
print(json);
|
||||
},
|
||||
);
|
||||
return response ?? [];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user