header 信息处理 2

This commit is contained in:
ziming 2025-10-11 10:35:49 +08:00
parent 763be7adbb
commit f90c45faa1
15 changed files with 19 additions and 19 deletions

View File

@ -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 {

View File

@ -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"
) )

View File

@ -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"
) )

View File

@ -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"
) )

View File

@ -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"

View File

@ -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)

View File

@ -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"
) )

View File

@ -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"
) )

View File

@ -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() {

View File

@ -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() {

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"
) )

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/sleepinggodoflove/lansexiongdi-marketing-sdk module gitee.com/lansexiongdi/ymt
go 1.22.2 go 1.22.2