feat: remove shipping settings, use shipping templates for cart calculation
This commit is contained in:
@@ -26,4 +26,13 @@ type UpdateShippingTemplateRequest struct {
|
||||
Provinces []string `json:"provinces"`
|
||||
IsDefault *bool `json:"is_default"`
|
||||
SortOrder *int `json:"sort_order"`
|
||||
}
|
||||
|
||||
// CalculateShippingRequest 计算运费请求
|
||||
type CalculateShippingRequest struct {
|
||||
TemplateID *uint `json:"template_id"`
|
||||
Weight float64 `json:"weight"`
|
||||
Quantity int `json:"quantity"`
|
||||
Subtotal float64 `json:"subtotal"`
|
||||
Province string `json:"province"`
|
||||
}
|
||||
Reference in New Issue
Block a user