fix crud user

This commit is contained in:
dirgantarasiahaan
2023-05-26 17:18:41 +07:00
parent 00dd061bac
commit cab86cf8fa
13 changed files with 49 additions and 10 deletions

View File

@ -65,7 +65,14 @@ public class LoginService implements BaseService<LoginRequest, LoginResponse> {
.userId(userRoleView.getId())
.username(userRoleView.getUsername())
.nama(userRoleView.getNama())
.roleId(userRoleView.getRoleId())
.role(userRoleView.getRole())
.instansiId(userRoleView.getInstansiId())
.instansi(userRoleView.getInstansi())
.bidangId(userRoleView.getBidangId())
.bidang(userRoleView.getBidang())
.jabatanId(userRoleView.getJabatanId())
.jabatan(userRoleView.getJabatan())
.accessMenu(new HashSet<>())
.build();

View File

@ -72,7 +72,12 @@ public class TokenManagementService implements BaseService<RefreshTokenRequest,
.userId(userRoleView.getId())
.username(userRoleView.getUsername())
.nama(userRoleView.getNama())
.roleId(userRoleView.getRoleId())
.role(userRoleView.getRole())
.instansiId(userRoleView.getInstansiId())
.instansi(userRoleView.getInstansi())
.bidangId(userRoleView.getBidangId())
.bidang(userRoleView.getBidang())
.accessMenu(new HashSet<>())
.build();

View File

@ -35,6 +35,7 @@ public class GetListUserService implements BaseService<UsersRequest, GetUsersRes
.id(userRoleView.getId())
.nama(userRoleView.getNama())
.username(userRoleView.getUsername())
.jabatanId(userRoleView.getJabatanId())
.jabatan(userRoleView.getJabatan())
.roleId(userRoleView.getRoleId())
.role(userRoleView.getRole())

View File

@ -26,6 +26,7 @@ public class GetUserByIdService implements BaseService<UsersRequest, UsersRespon
.id(userRoleView.getId())
.nama(userRoleView.getNama())
.username(userRoleView.getUsername())
.jabatanId(userRoleView.getJabatanId())
.jabatan(userRoleView.getJabatan())
.roleId(userRoleView.getRoleId())
.role(userRoleView.getRole())

View File

@ -36,7 +36,7 @@ public class PostCreateUserService implements BaseService<UsersRequest, UsersRes
.bidangId(input.getBidangId())
.nama(input.getNama())
.username(input.getUsername())
.jabatan(input.getJabatan())
.jabatanId(input.getJabatanId())
.roleId(input.getRoleId())
.email(input.getEmail())
.password(input.getPassword())

View File

@ -31,7 +31,7 @@ public class PutUpdateUserService implements BaseService<UsersRequest, UsersResp
users.setBidangId(input.getBidangId());
users.setNama(input.getNama());
users.setUsername(input.getUsername());
users.setJabatan(input.getJabatan());
users.setJabatanId(input.getJabatanId());
users.setRoleId(input.getRoleId());
users.setEmail(input.getEmail());
users.setPassword(input.getPassword());