master
李光春 2 years ago
parent e6ac8b0d37
commit d927801c06

@ -0,0 +1,17 @@
kind: pipeline
type: docker
name: clone
steps:
- name: Test
image: golang:1.18
commands:
- go env -w GO111MODULE=on
- go env -w GOPROXY=https://goproxy.cn,direct
- go test -v ./...
- name: Benchmark
image: golang:1.18
commands:
- go env -w GO111MODULE=on
- go env -w GOPROXY=https://goproxy.cn,direct
- go test -bench=. -benchmem

@ -5,18 +5,18 @@
📦 Golang 扩展包
[comment]: <> (go)
[![godoc](https://pkg.go.dev/badge/github.com/dtapps/go-library?status.svg)](https://pkg.go.dev/github.com/dtapps/go-library)
[![goproxy.cn](https://goproxy.cn/stats/github.com/dtapps/go-library/badges/download-count.svg)](https://goproxy.cn/stats/github.com/dtapps/go-library)
[![goreportcard.com](https://goreportcard.com/badge/github.com/dtapps/go-library)](https://goreportcard.com/report/github.com/dtapps/go-library)
[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/github.com%2Fdtapps%2Fgo-library)
[![godoc](https://pkg.go.dev/badge/go.dtapp.net/library?status.svg)](https://pkg.go.dev/go.dtapp.net/library)
[![goproxy.cn](https://goproxy.cn/stats/go.dtapp.net/library/badges/download-count.svg)](https://goproxy.cn/stats/go.dtapp.net/library)
[![goreportcard.com](https://goreportcard.com/badge/go.dtapp.net/library)](https://goreportcard.com/report/go.dtapp.net/library)
[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/go.dtapp.net/library)
#### 安装使用
```go
go get -v -u github.com/dtapps/go-library
go get -v -u go.dtapp.net/library
import (
"github.com/dtapps/go-library"
"go.dtapp.net/library"
)
```
@ -28,7 +28,7 @@ import (
```go
import (
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gotime"
)
gotime.Current().Now()
@ -47,6 +47,6 @@ gotime.Current().TimestampWithMillisecond()
## 🔑 License
[MIT](https://github.com/dtapps/go-library/blob/master/LICENSE)
[MIT](https://go.dtapp.net/library/blob/master/LICENSE)
Copyright (c) 2018 茂名聚合科技有限公司

@ -1,4 +1,4 @@
module github.com/dtapps/go-library
module go.dtapp.net/library
go 1.18

@ -1,8 +1,8 @@
package go_library
import (
_ "github.com/dtapps/go-library/service"
_ "github.com/dtapps/go-library/utils"
_ "go.dtapp.net/library/service"
_ "go.dtapp.net/library/utils"
)
func Version() string {

@ -2,8 +2,8 @@ package dingdanxia
import (
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -2,7 +2,7 @@ package dingdanxia
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -2,8 +2,8 @@ package dingdanxia
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -2,7 +2,7 @@ package dingdanxia
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -2,7 +2,7 @@ package dingdanxia
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -2,7 +2,7 @@ package dingdanxia
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -2,7 +2,7 @@ package dingdanxia
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,8 +3,8 @@ package dingtalk
import (
"encoding/json"
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -2,8 +2,8 @@ package dingtalk
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -2,8 +2,8 @@ package eastiot
import (
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
"time"
)

@ -2,8 +2,8 @@ package eastiot
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -3,7 +3,7 @@ package eastiot
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gomd5"
"go.dtapp.net/library/utils/gomd5"
"sort"
"strconv"
)

@ -3,9 +3,9 @@ package ejiaofei
import (
"errors"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomd5"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomd5"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -1,8 +1,8 @@
package ejiaofei
import (
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -2,8 +2,8 @@ package feishu
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -2,8 +2,8 @@ package feishu
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -1,10 +1,10 @@
package ip
import (
"github.com/dtapps/go-library/service/ip/ip2region"
v4 "github.com/dtapps/go-library/service/ip/v4"
v6 "github.com/dtapps/go-library/service/ip/v6"
"github.com/dtapps/go-library/utils/gopostgresql"
"go.dtapp.net/library/service/ip/ip2region"
v4 "go.dtapp.net/library/service/ip/v4"
v6 "go.dtapp.net/library/service/ip/v6"
"go.dtapp.net/library/utils/gopostgresql"
"os"
"strings"
)

@ -3,7 +3,7 @@ package ip2region
import (
_ "embed"
"errors"
"github.com/dtapps/go-library/utils/gostring"
"go.dtapp.net/library/utils/gostring"
"os"
"strconv"
"strings"

@ -1,9 +1,9 @@
package ip
import (
"github.com/dtapps/go-library/service/ip/ip2region"
v4 "github.com/dtapps/go-library/service/ip/v4"
v6 "github.com/dtapps/go-library/service/ip/v6"
"go.dtapp.net/library/service/ip/ip2region"
v4 "go.dtapp.net/library/service/ip/v4"
v6 "go.dtapp.net/library/service/ip/v6"
)
func (app *App) InitLog() {

@ -3,7 +3,7 @@ package v4
import (
_ "embed"
"encoding/binary"
"github.com/dtapps/go-library/utils/gostring"
"go.dtapp.net/library/utils/gostring"
"golang.org/x/text/encoding/simplifiedchinese"
"net"
)

@ -3,7 +3,7 @@ package v6
import (
_ "embed"
"encoding/binary"
"github.com/dtapps/go-library/utils/gostring"
"go.dtapp.net/library/utils/gostring"
"math/big"
"net"
"strings"

@ -2,8 +2,8 @@ package jd
import (
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -2,8 +2,8 @@ package jd
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -1,7 +1,7 @@
package jobs
import (
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gotime"
"log"
)

@ -1,6 +1,6 @@
package jobs
import "github.com/dtapps/go-library/utils/goip"
import "go.dtapp.net/library/utils/goip"
var TypeIp = map[string]string{
// 微信支付查询

@ -2,10 +2,10 @@ package jobs
import (
"fmt"
"github.com/dtapps/go-library/utils/gojson"
"github.com/dtapps/go-library/utils/goredis"
"github.com/dtapps/go-library/utils/gotime"
"github.com/dtapps/go-library/utils/gouuid"
"go.dtapp.net/library/utils/gojson"
"go.dtapp.net/library/utils/goredis"
"go.dtapp.net/library/utils/gotime"
"go.dtapp.net/library/utils/gouuid"
"gorm.io/gorm"
"net/http"
)

@ -2,7 +2,7 @@ package jobs
import (
"fmt"
"github.com/dtapps/go-library/utils/goredis"
"go.dtapp.net/library/utils/goredis"
"time"
)

@ -2,8 +2,8 @@ package kashangwl
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
"time"
)

@ -2,8 +2,8 @@ package kashangwl
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -5,7 +5,7 @@ import (
"crypto/md5"
"encoding/hex"
"encoding/json"
"github.com/dtapps/go-library/utils/goparams"
"go.dtapp.net/library/utils/goparams"
"io"
"net/url"
"sort"

@ -2,11 +2,11 @@ package leshuazf
import (
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"github.com/dtapps/go-library/utils/gopostgresql"
"github.com/dtapps/go-library/utils/gorandom"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"go.dtapp.net/library/utils/gopostgresql"
"go.dtapp.net/library/utils/gorandom"
"go.dtapp.net/library/utils/gotime"
"log"
"net/http"
)

@ -2,8 +2,8 @@ package leshuazf
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -2,8 +2,8 @@ package leshuazf
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gobase64"
"github.com/dtapps/go-library/utils/gomd5"
"go.dtapp.net/library/utils/gobase64"
"go.dtapp.net/library/utils/gomd5"
"sort"
)

@ -2,7 +2,7 @@ package meituan
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gotime"
"net/http"
)

@ -2,7 +2,7 @@ package meituan
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gotime"
"net/http"
)

@ -3,8 +3,8 @@ package meituan
import (
"encoding/json"
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -2,8 +2,8 @@ package meituan
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -3,9 +3,9 @@ package pinduoduo
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"github.com/dtapps/go-library/utils/gostring"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"go.dtapp.net/library/utils/gostring"
"net/http"
"regexp"
"strconv"

@ -2,8 +2,8 @@ package pinduoduo
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -1,8 +1,8 @@
package pintoto
import (
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"math"
"net/http"
"strconv"

@ -2,8 +2,8 @@ package pintoto
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -2,8 +2,8 @@ package sendcloud
import (
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -2,8 +2,8 @@ package sendcloud
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -1,28 +1,28 @@
package service
import (
_ "github.com/dtapps/go-library/service/dingdanxia"
_ "github.com/dtapps/go-library/service/dingtalk"
_ "github.com/dtapps/go-library/service/eastiot"
_ "github.com/dtapps/go-library/service/ejiaofei"
_ "github.com/dtapps/go-library/service/feishu"
_ "github.com/dtapps/go-library/service/ip"
_ "github.com/dtapps/go-library/service/jd"
_ "github.com/dtapps/go-library/service/jobs"
_ "github.com/dtapps/go-library/service/kashangwl"
_ "github.com/dtapps/go-library/service/leshuazf"
_ "github.com/dtapps/go-library/service/meituan"
_ "github.com/dtapps/go-library/service/pinduoduo"
_ "github.com/dtapps/go-library/service/pintoto"
_ "github.com/dtapps/go-library/service/sendcloud"
_ "github.com/dtapps/go-library/service/taobao"
_ "github.com/dtapps/go-library/service/tianyancha"
_ "github.com/dtapps/go-library/service/wechatminiprogram"
_ "github.com/dtapps/go-library/service/wechatoffice"
_ "github.com/dtapps/go-library/service/wechatopen"
_ "github.com/dtapps/go-library/service/wechatpayapiv2"
_ "github.com/dtapps/go-library/service/wechatpayapiv3"
_ "github.com/dtapps/go-library/service/wechatqy"
_ "github.com/dtapps/go-library/service/wechatunion"
_ "github.com/dtapps/go-library/service/wikeyun"
_ "go.dtapp.net/library/service/dingdanxia"
_ "go.dtapp.net/library/service/dingtalk"
_ "go.dtapp.net/library/service/eastiot"
_ "go.dtapp.net/library/service/ejiaofei"
_ "go.dtapp.net/library/service/feishu"
_ "go.dtapp.net/library/service/ip"
_ "go.dtapp.net/library/service/jd"
_ "go.dtapp.net/library/service/jobs"
_ "go.dtapp.net/library/service/kashangwl"
_ "go.dtapp.net/library/service/leshuazf"
_ "go.dtapp.net/library/service/meituan"
_ "go.dtapp.net/library/service/pinduoduo"
_ "go.dtapp.net/library/service/pintoto"
_ "go.dtapp.net/library/service/sendcloud"
_ "go.dtapp.net/library/service/taobao"
_ "go.dtapp.net/library/service/tianyancha"
_ "go.dtapp.net/library/service/wechatminiprogram"
_ "go.dtapp.net/library/service/wechatoffice"
_ "go.dtapp.net/library/service/wechatopen"
_ "go.dtapp.net/library/service/wechatpayapiv2"
_ "go.dtapp.net/library/service/wechatpayapiv3"
_ "go.dtapp.net/library/service/wechatqy"
_ "go.dtapp.net/library/service/wechatunion"
_ "go.dtapp.net/library/service/wikeyun"
)

@ -3,9 +3,9 @@ package taobao
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"github.com/dtapps/go-library/utils/gostring"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"go.dtapp.net/library/utils/gostring"
"net/http"
"regexp"
"strconv"

@ -2,8 +2,8 @@ package taobao
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -2,7 +2,7 @@ package tianyancha
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,9 +3,9 @@ package wechatminiprogram
import (
"encoding/json"
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"github.com/dtapps/go-library/utils/goredis"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"go.dtapp.net/library/utils/goredis"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -2,8 +2,8 @@ package wechatminiprogram
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -1,7 +1,7 @@
package wechatminiprogram
import (
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"log"
"os"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatminiprogram
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,9 +3,9 @@ package wechatoffice
import (
"encoding/json"
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"github.com/dtapps/go-library/utils/goredis"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"go.dtapp.net/library/utils/goredis"
"net/http"
)

@ -2,8 +2,8 @@ package wechatoffice
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -3,7 +3,7 @@ package wechatoffice
import (
"crypto/sha1"
"fmt"
"github.com/dtapps/go-library/utils/gorandom"
"go.dtapp.net/library/utils/gorandom"
"io"
"time"
)

@ -3,9 +3,9 @@ package wechatopen
import (
"encoding/json"
"errors"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"go.dtapp.net/library/utils/gotime"
"gorm.io/gorm"
"net/http"
)

@ -1,7 +1,7 @@
package wechatopen
import (
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gotime"
"gorm.io/gorm"
"time"
)

@ -1,7 +1,7 @@
package wechatopen
import (
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gotime"
"gorm.io/gorm"
"time"
)

@ -1,7 +1,7 @@
package wechatopen
import (
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gotime"
"gorm.io/gorm"
"time"
)

@ -2,8 +2,8 @@ package wechatopen
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -1,7 +1,7 @@
package wechatopen
import (
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gotime"
"gorm.io/gorm"
"time"
)

@ -2,9 +2,9 @@ package wechatpayapiv2
import (
"crypto/tls"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"github.com/dtapps/go-library/utils/gopostgresql"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"go.dtapp.net/library/utils/gopostgresql"
)
// App 微信支付服务

@ -2,8 +2,8 @@ package wechatpayapiv2
import (
"encoding/xml"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gorandom"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gorandom"
)
type TransfersQueryResponse struct {

@ -2,8 +2,8 @@ package wechatpayapiv2
import (
"encoding/xml"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gorandom"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gorandom"
)
type TransfersResponse struct {

@ -1,8 +1,8 @@
package wechatpayapiv2
import (
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
"net/http"
)

@ -3,7 +3,7 @@ package wechatpayapiv2
import (
"bytes"
"fmt"
"github.com/dtapps/go-library/utils/gomd5"
"go.dtapp.net/library/utils/gomd5"
"sort"
"strings"
)

@ -3,9 +3,9 @@ package wechatpayapiv3
import (
"encoding/json"
"errors"
"github.com/dtapps/go-library/utils/goheader"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/goheader"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -2,8 +2,8 @@ package wechatpayapiv3
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志

@ -2,7 +2,7 @@ package wechatpayapiv3
import (
"fmt"
"github.com/dtapps/go-library/utils/gorandom"
"go.dtapp.net/library/utils/gorandom"
"time"
)

@ -3,7 +3,7 @@ package wechatpayapiv3
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -2,7 +2,7 @@ package wechatpayapiv3
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -2,7 +2,7 @@ package wechatpayapiv3
import (
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatpayapiv3
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -2,7 +2,7 @@ package wechatpayapiv3
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -3,7 +3,7 @@ package wechatpayapiv3
import (
"encoding/json"
"fmt"
"github.com/dtapps/go-library/utils/gohttp"
"go.dtapp.net/library/utils/gohttp"
"net/http"
)

@ -13,7 +13,7 @@ import (
"encoding/pem"
"errors"
"fmt"
"github.com/dtapps/go-library/utils/gorandom"
"go.dtapp.net/library/utils/gorandom"
"net/url"
"time"
)

@ -2,8 +2,8 @@ package wechatqy
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gomongo"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gomongo"
"net/http"
)

@ -2,8 +2,8 @@ package wechatqy
import (
"encoding/json"
"github.com/dtapps/go-library/utils/gohttp"
"github.com/dtapps/go-library/utils/gotime"
"go.dtapp.net/library/utils/gohttp"
"go.dtapp.net/library/utils/gotime"
)
// 日志