优化开放接口日志分类

This commit is contained in:
yml2213
2026-07-30 21:07:10 +08:00
parent 9c3414607a
commit a16e518b6c
6 changed files with 210 additions and 9 deletions
+2
View File
@@ -23,6 +23,7 @@ func NewOpenHandler(fulfillmentSvc *service.FulfillmentService) *OpenHandler {
// QueryOrder GET /api/open/v1/orders/:order_no
// 上游输入店铺订单号,查询商品与是否可发货
func (h *OpenHandler) QueryOrder(c *gin.Context) {
openlog.SetAction(c, openlog.ActionQuery)
orderNo := c.Param("order_no")
if orderNo == "" {
orderNo = c.Query("order_no")
@@ -67,6 +68,7 @@ type shipNotifyReq struct {
// ShipNotify POST /api/open/v1/orders/ship-notify
// 上游发货后推送结果,同步订单状态
func (h *OpenHandler) ShipNotify(c *gin.Context) {
openlog.SetAction(c, openlog.ActionPush)
var req shipNotifyReq
if err := c.ShouldBindJSON(&req); err != nil {
openlog.Warn(c, "ship_notify bind_fail err=%v", err)