mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
feat: change message and contac list attribute
This commit is contained in:
@@ -464,18 +464,20 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
|
||||
|
||||
case TypeQueryToDB::TYPE_QUERY_GET_CONTACT_LIST:
|
||||
{
|
||||
QList<User> entitylist;
|
||||
QList<ContactModel> entitylist;
|
||||
QList<Instructor> listInstructor = providerDBLMS->GetListAllInstructors();
|
||||
QList<Trainee> listTrainees = providerDBLMS->GetListAllTrainees();
|
||||
|
||||
for (Instructor instructor : listInstructor)
|
||||
{
|
||||
entitylist.append(static_cast<User>(instructor));
|
||||
ContactModel model = ContactModel(instructor);
|
||||
entitylist.append(model);
|
||||
}
|
||||
|
||||
for (Trainee trainee : listTrainees)
|
||||
{
|
||||
entitylist.append(static_cast<User>(trainee));
|
||||
ContactModel model = ContactModel(trainee);
|
||||
entitylist.append(model);
|
||||
}
|
||||
|
||||
QByteArray arrayAnswer;
|
||||
|
||||
Reference in New Issue
Block a user