补商户发货API

This commit is contained in:
yml2213
2026-07-31 12:24:54 +08:00
parent e4c1306216
commit 761522e808
7 changed files with 580 additions and 8 deletions
+6
View File
@@ -202,6 +202,12 @@ func clientAction(method, path string) string {
return ActionList
case method == "POST" && path == "/api/client/v1/orders":
return ActionCreate
case method == "GET" && strings.HasPrefix(path, "/api/client/v1/orders/") && strings.Contains(path, "/delivery"):
return ActionQuery
case method == "POST" && strings.HasPrefix(path, "/api/client/v1/orders/") && strings.Contains(path, "/delivery/bind"):
return ActionCreate
case method == "POST" && strings.HasPrefix(path, "/api/client/v1/orders/") && strings.Contains(path, "/delivery/submit"):
return ActionCreate
case method == "GET" && strings.HasPrefix(path, "/api/client/v1/orders/"):
return ActionQuery
case method == "POST" && strings.HasPrefix(path, "/api/client/v1/orders/") && strings.HasSuffix(path, "/cancel"):