feat: remove shipping settings, use shipping templates for cart calculation
Build and Push Docker Image / build-and-push (push) Successful in 1m0s
Build and Push Docker Image / deploy (push) Successful in 7s

This commit is contained in:
nuyue
2026-07-12 20:01:03 +08:00
parent d7716b463b
commit bdefa34d41
6 changed files with 112 additions and 14 deletions
@@ -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"`
}