package yunzmall import ( "context" "github.com/gogf/gf/encoding/gjson" "github.com/gogf/gf/frame/g" "github.com/gogf/gf/util/gconv" ) // RefundCancel 取消售后 func (s *Client) RefundCancel(ctx context.Context, req string) (res *CommonRes, err error) { var method = "/app/afterSales/close" result, err := s.post(ctx, method, g.Map{ "id": gconv.Int(req), }) if err != nil { return } err = gjson.New(result).Scan(&res) return }