log.go
498 字节
package transform
import (
"gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/domain"
"gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/infrastructure/pg/models"
)
func TransformToLogDomainModelFromPgModels(logModel *models.Log) (*domain.Log, error) {
return &domain.Log{
LogId: logModel.LogId,
LogType: logModel.LogType,
SourceId: logModel.SourceId,
Entry: logModel.Entry,
CreatedAt: logModel.CreatedAt,
}, nil
}