Restructurization
This commit is contained in:
9
pricing/dto/dto.go
Normal file
9
pricing/dto/dto.go
Normal 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
7
pricing/entity/entity.go
Normal 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
7
pricing/model/model.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package pricing
|
||||
|
||||
type ProductPriceModel struct {
|
||||
// ID int `db:"id"`
|
||||
PID string `db:"pid"`
|
||||
Price int `db:"price"`
|
||||
}
|
||||
Reference in New Issue
Block a user