api/v1/subOrder.go
@@ -87,6 +87,8 @@ return } subOrder.Id = params.Id errCode = subOrderService.UpdateSubOrder(&subOrder) if errCode != ecode.OK { ctx.Fail(errCode) @@ -101,7 +103,7 @@ // @Tags SubOrder // @Summary 获取子订单列表 // @Produce application/json // @Success 200 {object} contextx.Response{} // @Success 200 {object} contextx.Response{data=response.SubOrderResponse} // @Router /api/subOrder/list [get] func (s *SubOrderApi) List(c *gin.Context) { ctx, ok := contextx.NewContext(c, nil)