header 信息处理 2
This commit is contained in:
parent
763be7adbb
commit
f90c45faa1
|
|
@ -1,7 +1,7 @@
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/core"
|
"gitee.com/lansexiongdi/ymt/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Service struct {
|
type Service struct {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/api"
|
"gitee.com/lansexiongdi/ymt/api"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/core"
|
"gitee.com/lansexiongdi/ymt/core"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package anyapi
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/core"
|
"gitee.com/lansexiongdi/ymt/core"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/api"
|
"gitee.com/lansexiongdi/ymt/api"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/core"
|
"gitee.com/lansexiongdi/ymt/core"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/core"
|
"gitee.com/lansexiongdi/ymt/core"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package key
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"gitee.com/lansexiongdi/ymt/core"
|
||||||
"github.com/go-playground/validator/v10"
|
"github.com/go-playground/validator/v10"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/core"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ core.Request = (*OrderRequest)(nil)
|
var _ core.Request = (*OrderRequest)(nil)
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ package v2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/api"
|
"gitee.com/lansexiongdi/ymt/api"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/core"
|
"gitee.com/lansexiongdi/ymt/core"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package v2
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/core"
|
"gitee.com/lansexiongdi/ymt/core"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/utils/rsa"
|
"gitee.com/lansexiongdi/ymt/utils/rsa"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/utils/sm"
|
"gitee.com/lansexiongdi/ymt/utils/sm"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"gitee.com/lansexiongdi/ymt/utils/rsa"
|
||||||
|
"gitee.com/lansexiongdi/ymt/utils/sm"
|
||||||
"github.com/go-playground/validator/v10"
|
"github.com/go-playground/validator/v10"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/utils/rsa"
|
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/utils/sm"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type SignType string
|
type SignType string
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/utils"
|
"gitee.com/lansexiongdi/ymt/utils"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
sdkrsa "github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/utils/rsa"
|
sdkrsa "gitee.com/lansexiongdi/ymt/utils/rsa"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RsaSigner for RSA signing
|
// RsaSigner for RSA signing
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/sleepinggodoflove/lansexiongdi-marketing-sdk/utils/sm"
|
"gitee.com/lansexiongdi/ymt/utils/sm"
|
||||||
"github.com/tjfoc/gmsm/sm2"
|
"github.com/tjfoc/gmsm/sm2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue