package mapper

import (
	"netidhub-saas-be/app/database/entity"
	res "netidhub-saas-be/app/module/clients/response"
)

func ClientsResponseMapper(clientsReq *entity.Clients) (clientsRes *res.ClientsResponse) {
	if clientsReq != nil {
		clientsRes = &res.ClientsResponse{
			ID:             clientsReq.ID,
			Name:           clientsReq.Name,
			Description:    clientsReq.Description,
			ClientType:     clientsReq.ClientType,
			ParentClientId: clientsReq.ParentClientId,
			LogoUrl:        clientsReq.LogoUrl,
			LogoImagePath:  clientsReq.LogoImagePath,
			Address:        clientsReq.Address,
			PhoneNumber:    clientsReq.PhoneNumber,
			Website:        clientsReq.Website,
			MaxUsers:       clientsReq.MaxUsers,
			MaxStorage:     clientsReq.MaxStorage,
			Settings:       clientsReq.Settings,
			CreatedById:    clientsReq.CreatedById,
			IsActive:       clientsReq.IsActive,
			CreatedAt:      clientsReq.CreatedAt,
			UpdatedAt:      clientsReq.UpdatedAt,
		}
	}
	return clientsRes
}
