Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-06-19 15:44:12 +03:00
parent da9d7c2fd5
commit 1054a15547
13 changed files with 828 additions and 62 deletions

View File

@@ -375,6 +375,21 @@ func InitRoutes(pgDB *sql.DB, mssql *sql.DB, ml *mailer.GraphMailer) *mux.Router
"system", "update",
wrapV3(routes.SaveOrderPriceListFirstGroupMailMappingHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/system/order-price-list-user-price-groups/lookups", "GET",
"system", "update",
wrapV3(routes.GetOrderPriceListPriceGroupLookupsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/system/order-price-list-user-price-groups", "GET",
"system", "update",
wrapV3(routes.GetOrderPriceListUserPriceGroupRowsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/system/order-price-list-user-price-groups/{id}", "PUT",
"system", "update",
wrapV3(routes.SaveUserOrderPriceListPriceGroupsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/language/translations", "GET",
"language", "update",
@@ -439,6 +454,21 @@ func InitRoutes(pgDB *sql.DB, mssql *sql.DB, ml *mailer.GraphMailer) *mux.Router
"system", "update",
wrapV3(routes.SaveUserPermissionsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/users/{id}/order-price-list-price-groups", "GET",
"user", "update",
wrapV3(routes.GetUserOrderPriceListPriceGroupsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/users/order-price-list-price-groups/lookups", "GET",
"user", "update",
wrapV3(routes.GetOrderPriceListPriceGroupLookupsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/users/{id}/order-price-list-price-groups", "PUT",
"user", "update",
wrapV3(routes.SaveUserOrderPriceListPriceGroupsHandler(pgDB)),
)
// ✅ permissions/routes (system:view)
bindV3(r, pgDB,
@@ -810,6 +840,11 @@ func InitRoutes(pgDB *sql.DB, mssql *sql.DB, ml *mailer.GraphMailer) *mux.Router
"order", "view",
wrapV3(http.HandlerFunc(routes.GetProductPricingFilterOptionsHandler)),
)
bindV3(r, pgDB,
"/api/order/price-list/my-price-groups", "GET",
"order", "view",
wrapV3(routes.GetMyOrderPriceListPriceGroupsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/order/price-list/campaigns", "GET",
"order", "view",