Restructurization

This commit is contained in:
Piotr Biernat
2024-12-06 13:24:56 +01:00
parent f9acb885a8
commit d7d8ac5091
19 changed files with 113 additions and 52 deletions

9
pricing/dto/dto.go Normal file
View File

@@ -0,0 +1,9 @@
package pricing
type ProductPriceRequestDTO struct {
ProductId int `json:"product_id"`
}
type ProductPriceResponseDTO struct {
Price int `json:"price"`
}

7
pricing/entity/entity.go Normal file
View File

@@ -0,0 +1,7 @@
package pricing
type ProductPriceEntity struct {
ID int `db:"id"`
PID string `db:"pid"`
Price int `db:"price"`
}

7
pricing/model/model.go Normal file
View File

@@ -0,0 +1,7 @@
package pricing
type ProductPriceModel struct {
// ID int `db:"id"`
PID string `db:"pid"`
Price int `db:"price"`
}