...
|
...
|
@@ -7,19 +7,20 @@ import ( |
|
|
|
|
|
func TransformToOrderGoodDomainModelFromPgModels(orderGoodModel *models.OrderGood) (*domain.OrderGood, error) {
|
|
|
return &domain.OrderGood{
|
|
|
OrderGoodId: orderGoodModel.OrderGoodId,
|
|
|
OrderGoodAmount: orderGoodModel.OrderGoodAmount,
|
|
|
OrderGoodName: orderGoodModel.OrderGoodName,
|
|
|
OrderGoodPrice: orderGoodModel.OrderGoodPrice,
|
|
|
OrderGoodQuantity: orderGoodModel.OrderGoodQuantity,
|
|
|
DividendsOrderNumber: orderGoodModel.DividendsOrderNumber,
|
|
|
CooperationContractNumber: orderGoodModel.CooperationContractNumber,
|
|
|
OrderGoodExpense: orderGoodModel.OrderGoodExpense,
|
|
|
OrderGoodDividendsStatus: orderGoodModel.OrderGoodDividendsStatus,
|
|
|
OrgId: orderGoodModel.OrgId,
|
|
|
CompanyId: orderGoodModel.CompanyId,
|
|
|
CreatedAt: orderGoodModel.CreatedAt,
|
|
|
DeletedAt: orderGoodModel.DeletedAt,
|
|
|
UpdatedAt: orderGoodModel.UpdatedAt,
|
|
|
OrderGoodId: orderGoodModel.OrderGoodId,
|
|
|
OrderGoodAmount: orderGoodModel.OrderGoodAmount,
|
|
|
OrderGoodName: orderGoodModel.OrderGoodName,
|
|
|
OrderGoodPrice: orderGoodModel.OrderGoodPrice,
|
|
|
OrderGoodQuantity: orderGoodModel.OrderGoodQuantity,
|
|
|
DividendsOrderNumber: orderGoodModel.DividendsOrderNumber,
|
|
|
DividendsReturnedOrderNumber: orderGoodModel.DividendsReturnedOrderNumber,
|
|
|
CooperationContractNumber: orderGoodModel.CooperationContractNumber,
|
|
|
OrderGoodExpense: orderGoodModel.OrderGoodExpense,
|
|
|
OrderGoodDividendsStatus: orderGoodModel.OrderGoodDividendsStatus,
|
|
|
OrgId: orderGoodModel.OrgId,
|
|
|
CompanyId: orderGoodModel.CompanyId,
|
|
|
CreatedAt: orderGoodModel.CreatedAt,
|
|
|
DeletedAt: orderGoodModel.DeletedAt,
|
|
|
UpdatedAt: orderGoodModel.UpdatedAt,
|
|
|
}, nil
|
|
|
} |
...
|
...
|
|