u8t
This commit is contained in:
parent
1b8f9cd42c
commit
ce73e3b561
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module gitlab.batiao8.com/open/gosdk
|
module git.u8t.cn/open/gosdk
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue