This commit is contained in:
jiangyong27 2024-07-12 16:26:05 +08:00
parent 1b8f9cd42c
commit ce73e3b561
20 changed files with 31 additions and 31 deletions

2
go.mod
View File

@ -1,4 +1,4 @@
module gitlab.batiao8.com/open/gosdk module git.u8t.cn/open/gosdk
go 1.18 go 1.18

View File

@ -4,10 +4,10 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"git.u8t.cn/open/gosdk/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/smbrave/goutil" "github.com/smbrave/goutil"
"github.com/spf13/cast" "github.com/spf13/cast"
"gitlab.batiao8.com/open/gosdk/util"
"time" "time"
) )

View File

@ -6,15 +6,15 @@ import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.u8t.cn/open/gosdk/util"
"git.u8t.cn/open/gosdk/wechat"
"git.u8t.cn/open/gosdk/wechat/cache"
"git.u8t.cn/open/gosdk/wechat/message"
wutil "git.u8t.cn/open/gosdk/wechat/util"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/smbrave/goutil" "github.com/smbrave/goutil"
"github.com/spf13/cast" "github.com/spf13/cast"
"gitlab.batiao8.com/open/gosdk/util"
"gitlab.batiao8.com/open/gosdk/wechat"
"gitlab.batiao8.com/open/gosdk/wechat/cache"
"gitlab.batiao8.com/open/gosdk/wechat/message"
wutil "gitlab.batiao8.com/open/gosdk/wechat/util"
"io" "io"
"io/ioutil" "io/ioutil"
"mime/multipart" "mime/multipart"

View File

@ -3,10 +3,10 @@ package qyweixin
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.u8t.cn/open/gosdk/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/smbrave/goutil" "github.com/smbrave/goutil"
"github.com/spf13/cast" "github.com/spf13/cast"
"gitlab.batiao8.com/open/gosdk/util"
) )
type Applyer struct { type Applyer struct {

View File

@ -4,10 +4,10 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"git.u8t.cn/open/gosdk/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/smbrave/goutil" "github.com/smbrave/goutil"
"github.com/spf13/cast" "github.com/spf13/cast"
"gitlab.batiao8.com/open/gosdk/util"
"gorm.io/gorm/utils" "gorm.io/gorm/utils"
"time" "time"
) )

View File

@ -4,10 +4,10 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"git.u8t.cn/open/gosdk/util"
"git.u8t.cn/open/gosdk/wechat/message"
"github.com/smbrave/goutil" "github.com/smbrave/goutil"
"github.com/spf13/cast" "github.com/spf13/cast"
"gitlab.batiao8.com/open/gosdk/util"
"gitlab.batiao8.com/open/gosdk/wechat/message"
"time" "time"
) )

View File

@ -2,10 +2,10 @@ package qyweixin
import ( import (
"fmt" "fmt"
"git.u8t.cn/open/gosdk/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/smbrave/goutil" "github.com/smbrave/goutil"
"github.com/spf13/cast" "github.com/spf13/cast"
"gitlab.batiao8.com/open/gosdk/util"
"time" "time"
) )

View File

@ -6,13 +6,13 @@ import (
"crypto/tls" "crypto/tls"
"errors" "errors"
"fmt" "fmt"
butil "git.u8t.cn/open/gosdk/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/smbrave/goutil" "github.com/smbrave/goutil"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/wechatpay-apiv3/wechatpay-go/core" "github.com/wechatpay-apiv3/wechatpay-go/core"
"github.com/wechatpay-apiv3/wechatpay-go/core/option" "github.com/wechatpay-apiv3/wechatpay-go/core/option"
"github.com/wechatpay-apiv3/wechatpay-go/utils" "github.com/wechatpay-apiv3/wechatpay-go/utils"
butil "gitlab.batiao8.com/open/gosdk/util"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"os" "os"

View File

@ -3,8 +3,8 @@ package unify
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.u8t.cn/open/gosdk/util"
"github.com/spf13/cast" "github.com/spf13/cast"
"gitlab.batiao8.com/open/gosdk/util"
"net/url" "net/url"
"strconv" "strconv"
"strings" "strings"

View File

@ -3,7 +3,7 @@ package unify
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"gitlab.batiao8.com/open/gosdk/util" "git.u8t.cn/open/gosdk/util"
) )
type Application struct { type Application struct {

View File

@ -3,7 +3,7 @@ package unify
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"gitlab.batiao8.com/open/gosdk/util" "git.u8t.cn/open/gosdk/util"
"net/url" "net/url"
) )

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"gitlab.batiao8.com/open/gosdk/util" "git.u8t.cn/open/gosdk/util"
) )
var ( var (

View File

@ -6,7 +6,7 @@ import (
"sync" "sync"
"time" "time"
"gitlab.batiao8.com/open/gosdk/wechat/util" "git.u8t.cn/open/gosdk/wechat/util"
) )
const ( const (

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"time" "time"
"gitlab.batiao8.com/open/gosdk/wechat/util" "git.u8t.cn/open/gosdk/wechat/util"
) )
const ( const (

View File

@ -4,7 +4,7 @@ import (
"net/http" "net/http"
"sync" "sync"
"gitlab.batiao8.com/open/gosdk/wechat/cache" "git.u8t.cn/open/gosdk/wechat/cache"
) )
// Context struct // Context struct

View File

@ -7,7 +7,7 @@ import (
"sync" "sync"
"time" "time"
"gitlab.batiao8.com/open/gosdk/wechat/util" "git.u8t.cn/open/gosdk/wechat/util"
) )
const ( const (

View File

@ -3,8 +3,8 @@ package message
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"gitlab.batiao8.com/open/gosdk/wechat/context" "git.u8t.cn/open/gosdk/wechat/context"
"gitlab.batiao8.com/open/gosdk/wechat/util" "git.u8t.cn/open/gosdk/wechat/util"
) )
const ( const (

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"gitlab.batiao8.com/open/gosdk/wechat/context" "git.u8t.cn/open/gosdk/wechat/context"
"gitlab.batiao8.com/open/gosdk/wechat/util" "git.u8t.cn/open/gosdk/wechat/util"
) )
const ( const (

View File

@ -9,9 +9,9 @@ import (
"runtime/debug" "runtime/debug"
"strconv" "strconv"
"gitlab.batiao8.com/open/gosdk/wechat/context" "git.u8t.cn/open/gosdk/wechat/context"
"gitlab.batiao8.com/open/gosdk/wechat/message" "git.u8t.cn/open/gosdk/wechat/message"
"gitlab.batiao8.com/open/gosdk/wechat/util" "git.u8t.cn/open/gosdk/wechat/util"
) )
// Server struct // Server struct

View File

@ -4,9 +4,9 @@ import (
"net/http" "net/http"
"sync" "sync"
"gitlab.batiao8.com/open/gosdk/wechat/cache" "git.u8t.cn/open/gosdk/wechat/cache"
"gitlab.batiao8.com/open/gosdk/wechat/context" "git.u8t.cn/open/gosdk/wechat/context"
"gitlab.batiao8.com/open/gosdk/wechat/server" "git.u8t.cn/open/gosdk/wechat/server"
) )
// Wechat struct // Wechat struct