contract_undertaker_feedback.go
1.3 KB
package transform
import (
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models"
)
func TransformToContractUndertakerFeedbackDomainModelFromPgModels(
contractUndertakerFeedbackModel *models.ContractUndertakerFeedback) (*domain.ContractUndertakerFeedback, error) {
return &domain.ContractUndertakerFeedback{
FeedbackId: contractUndertakerFeedbackModel.FeedbackId,
FeedbackAttachment: contractUndertakerFeedbackModel.FeedbackAttachment,
FeedbackContent: contractUndertakerFeedbackModel.FeedbackContent,
CooperationContractNumber: contractUndertakerFeedbackModel.CooperationContractNumber,
CooperationContractName: contractUndertakerFeedbackModel.CooperationContractName,
ContractUndertaker: contractUndertakerFeedbackModel.ContractUndertaker,
Org: contractUndertakerFeedbackModel.Org,
Company: contractUndertakerFeedbackModel.Company,
UpdatedAt: contractUndertakerFeedbackModel.UpdatedAt,
DeletedAt: contractUndertakerFeedbackModel.DeletedAt,
CreatedAt: contractUndertakerFeedbackModel.CreatedAt,
}, nil
}