cooperation_contract_relevant.go
947 字节
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 TransformToCooperationContractRelevantDomainModelFromPgModels(cooperationContractRelevantModel *models.CooperationContractRelevant) (*domain.CooperationContractRelevant, error) {
return &domain.CooperationContractRelevant{
CooperationContractRelevantId: cooperationContractRelevantModel.CooperationContractRelevantId,
CooperationContractNumber: cooperationContractRelevantModel.CooperationContractNumber,
Relevant: cooperationContractRelevantModel.Relevant,
UpdatedAt: cooperationContractRelevantModel.UpdatedAt,
DeletedAt: cooperationContractRelevantModel.DeletedAt,
CreatedAt: cooperationContractRelevantModel.CreatedAt,
}, nil
}