提交 3d3f2557 authored 作者: mooncake's avatar mooncake

update

上级 cdc075ba
......@@ -17,10 +17,10 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/tracer"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/rd/nacos"
"gitlab.wanzhuangkj.com/tush/xpkg/util/dxsf"
goutils "gitlab.wanzhuangkj.com/tush/xpkg/util/goutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/dxsf"
goutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/goutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/app"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
......
......@@ -6,7 +6,7 @@ import (
"time"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/eventbus"
hashutils "gitlab.wanzhuangkj.com/tush/xpkg/util/hashutils"
hashutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/hashutils"
"github.com/hashicorp/consul/api"
"github.com/spf13/viper"
......
......@@ -3,13 +3,13 @@ package database
import (
"time"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/config"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/mysql"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func InitMysql(dbConfig *config.Database) (*sgorm.DB, error) {
......
......@@ -10,7 +10,7 @@ import (
"github.com/gin-gonic/gin"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
// CheckHealthReply check health result
......
......@@ -7,8 +7,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/jwt"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
const (
......
......@@ -15,7 +15,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/container/group"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/shield/circuitbreaker"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func runCircuitBreakerHTTPServer() string {
......
......@@ -8,7 +8,7 @@ import (
"time"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli/entity"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/ips"
......
......@@ -10,8 +10,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
func init() {
......
......@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"gitlab.wanzhuangkj.com/tush/xpkg/gin/handlerfunc"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func TestMetrics(t *testing.T) {
......
......@@ -14,7 +14,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/eventbus"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/ips"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
var (
......
......@@ -13,7 +13,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func runRateLimiterHTTPServer() string {
......
......@@ -3,7 +3,7 @@ package middleware
import (
"net/http"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
......
......@@ -6,7 +6,7 @@ import (
"time"
"github.com/gin-gonic/gin"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"go.uber.org/zap"
)
......
......@@ -9,7 +9,7 @@ import (
"github.com/redis/go-redis/v9"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/goredis"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"go.uber.org/zap"
)
......
......@@ -2,7 +2,7 @@ package sw
import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"testing"
"time"
)
......
......@@ -7,7 +7,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
......
......@@ -8,7 +8,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func TestRegister(t *testing.T) {
......
......@@ -5,7 +5,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
const (
......
......@@ -10,7 +10,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli/entity"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"github.com/gin-gonic/gin"
......
......@@ -12,7 +12,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
var (
......
......@@ -9,7 +9,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func runHTTPServer(registerSwaggerFn func(r *gin.Engine)) string {
......
......@@ -17,7 +17,7 @@ import (
"github.com/gin-gonic/gin/binding"
"github.com/stretchr/testify/assert"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func runValidatorHTTPServer() string {
......
......@@ -26,8 +26,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/jwt"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/text"
"gitlab.wanzhuangkj.com/tush/xpkg/util/weblogutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/weblogutils"
)
func New() *gin.Engine {
......
......@@ -8,7 +8,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/encoding"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/gotest"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
type cacheUser struct {
......
......@@ -13,8 +13,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/encoding"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
xslice "gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
xslice "gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
)
type memoryCache struct {
......
......@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/gotest"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
type memoryUser struct {
......
......@@ -8,7 +8,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/encoding"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/gotest"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
type redisUser struct {
......
......@@ -2,10 +2,10 @@ package biz
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type Email struct {
......
......@@ -2,10 +2,10 @@ package biz
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type EmailReceiver struct {
......
......@@ -2,10 +2,10 @@ package biz
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type EmailSend struct {
......
......@@ -2,10 +2,10 @@ package biz
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type EmailSendLog struct {
......
......@@ -2,9 +2,9 @@ package biz
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type EmailTpl struct {
......
......@@ -2,10 +2,10 @@ package biz
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type EmailTplReceiver struct {
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/service"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type emailController struct {
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/service"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type emailReceiverController struct {
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/service"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type emailSendController struct {
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/service"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type emailSendLogController struct {
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/service"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type emailTplController struct {
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/service"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type emailTplReceiverController struct {
......
......@@ -3,8 +3,8 @@ package dao
import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/odao"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailDao struct {
......
......@@ -3,8 +3,8 @@ package dao
import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/odao"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailReceiverDao struct {
......
......@@ -4,8 +4,8 @@ import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/enums"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/odao"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailSendDao struct {
......
......@@ -4,8 +4,8 @@ import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/enums"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/odao"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailSendLogDao struct {
......
......@@ -3,8 +3,8 @@ package dao
import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/odao"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailTplReceiverDao struct {
......
......@@ -18,7 +18,7 @@ import (
xsfutils "gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/xsf_utils"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gorm.io/gorm"
"gopkg.in/gomail.v2"
......
package models
import (
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
package models
import (
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
......@@ -2,9 +2,9 @@ package models
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/enums"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
......@@ -2,9 +2,9 @@ package models
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/enums"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
package models
import (
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
package models
import (
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
......@@ -5,7 +5,7 @@ import (
"time"
"github.com/spf13/cast"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type commonService struct{}
......
......@@ -10,9 +10,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
xsfutils "gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/xsf_utils"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/util/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/xutils/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailService struct {
......
......@@ -10,9 +10,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
xsfutils "gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/xsf_utils"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/util/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/xutils/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailReceiverService struct {
......
......@@ -11,9 +11,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
xsfutils "gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/xsf_utils"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/util/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/xutils/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailSendService struct {
......
......@@ -10,9 +10,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
xsfutils "gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/xsf_utils"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/util/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/xutils/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailSendLogService struct {
......
......@@ -10,9 +10,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
xsfutils "gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/xsf_utils"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/util/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/xutils/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailTplService struct {
......
......@@ -10,9 +10,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/models"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/types"
xsfutils "gitlab.wanzhuangkj.com/tush/xpkg/pkg/email/xsf_utils"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/util/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
csvexporter "gitlab.wanzhuangkj.com/tush/xpkg/xutils/csv_exporter"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type emailTplReceiverService struct {
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -7,9 +7,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -7,9 +7,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -6,8 +6,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -5,9 +5,9 @@ import (
"fmt"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/dxsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/dxsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
const (
......
......@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/status"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
var rpcStatus = []*RPCStatus{
......
......@@ -8,7 +8,7 @@ import (
"time"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"github.com/redis/go-redis/v9"
"go.uber.org/zap"
......
......@@ -6,7 +6,7 @@ import (
"github.com/alicebob/miniredis/v2"
"github.com/redis/go-redis/v9"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
// Cache redis cache
......
......@@ -9,7 +9,7 @@ import (
"github.com/gin-gonic/gin"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
// Handler info
......
......@@ -9,7 +9,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
// Service info
......
......@@ -5,7 +5,7 @@ import (
"fmt"
"github.com/gin-gonic/gin"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type CopyHttpReq struct {
......
......@@ -18,8 +18,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
retryutils "gitlab.wanzhuangkj.com/tush/xpkg/util/retryutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
retryutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/retryutils"
)
const defaultTimeout = 30 * time.Second
......
......@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func TestRegister(t *testing.T) {
......
......@@ -6,7 +6,7 @@ import (
"strings"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
const (
......
......@@ -13,7 +13,7 @@ import (
"github.com/gorilla/websocket"
"go.uber.org/zap"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
)
func TestWebSocketServerDefault(t *testing.T) {
......
......@@ -10,7 +10,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/jwt"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
......
......@@ -2,7 +2,7 @@ package xcommon
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xtype"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type IConverter[ID xtype.Key, T, B any] interface {
......
......@@ -12,7 +12,7 @@ import (
"github.com/gin-gonic/gin"
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli"
maputils "gitlab.wanzhuangkj.com/tush/xpkg/util/maputils"
maputils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/maputils"
)
type IValid interface {
......
......@@ -11,8 +11,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/cache"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/encoding"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
const (
......
......@@ -12,11 +12,11 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
setutils "gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/ocache"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
setutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"golang.org/x/sync/singleflight"
"gorm.io/gorm"
olog "gorm.io/gorm/logger"
......
package xmodels
import (
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
setutils "gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
setutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gorm.io/gorm"
)
......
......@@ -5,10 +5,10 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
type CronJob struct {
......
package biz
import (
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type CronJobLog struct {
......
......@@ -3,10 +3,10 @@ package biz
import (
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type CronJobRecord struct {
......
......@@ -12,9 +12,6 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/gin/response"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/gocron"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/redsyncutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/biz"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/dao"
......@@ -22,6 +19,9 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/service"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/types"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/redsyncutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
const (
......
......@@ -7,12 +7,12 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/config"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/gocron"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/controller"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/enums"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/service"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/types"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
)
func AddHandler(k string, h controller.Fn) {
......
......@@ -8,7 +8,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"golang.org/x/sync/singleflight"
"gorm.io/gorm"
glogger "gorm.io/gorm/logger"
......
......@@ -3,9 +3,9 @@ package dao
import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/odao"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"golang.org/x/sync/singleflight"
)
......
......@@ -3,9 +3,9 @@ package dao
import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/odao"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"golang.org/x/sync/singleflight"
)
......
......@@ -5,8 +5,8 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/enums"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
package models
import (
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
package models
import (
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
)
......
......@@ -4,7 +4,6 @@ import (
"context"
"fmt"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/biz"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/dao"
......@@ -12,10 +11,11 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/enums"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/types"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"github.com/jinzhu/copier"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/util/sliceutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/sliceutils"
)
type cronJobService struct {
......
......@@ -3,12 +3,12 @@ package service
import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/biz"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/dao"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/types"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type cronJobLogService struct {
......
......@@ -3,12 +3,12 @@ package service
import (
"context"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/biz"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/dao"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/types"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
type cronJobRecordService struct {
......
......@@ -2,11 +2,11 @@ package types
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/biz"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/enums"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -2,10 +2,10 @@ package types
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/biz"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -2,10 +2,10 @@ package types
import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/sgorm/query"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/biz"
"gitlab.wanzhuangkj.com/tush/xpkg/xcron/models"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
)
var _ xtime.DateTime
......
......@@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"gitlab.wanzhuangkj.com/tush/xpkg/util/cd"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/cd"
)
type Dog struct {
......
......@@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"gitlab.wanzhuangkj.com/tush/xpkg/util/cd"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/cd"
)
func TestPassword_Hash(t *testing.T) {
......
......@@ -12,8 +12,8 @@ import (
"github.com/jinzhu/copier"
"gitlab.wanzhuangkj.com/tush/xpkg/config"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/oss"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xcommon/odao"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
type CSVExporter[T any] struct {
......
......@@ -7,7 +7,7 @@ import (
"strings"
"time"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"github.com/gin-gonic/gin"
"github.com/spf13/cast"
......
......@@ -10,7 +10,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/config"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
)
var (
......
......@@ -9,7 +9,7 @@ import (
"github.com/redis/go-redis/v9"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxutils "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
var (
......
......@@ -6,7 +6,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/errcode"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xtype"
"gitlab.wanzhuangkj.com/tush/xpkg/util/setutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/setutils"
"github.com/jinzhu/copier"
"github.com/spf13/cast"
......
......@@ -15,11 +15,11 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/httpcli/entity"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
merge "gitlab.wanzhuangkj.com/tush/xpkg/pkg/merger"
"gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/jsonutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/retryutils"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/util/xtime"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/jsonutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/retryutils"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/xutils/xtime"
"gorm.io/gorm"
glogger "gorm.io/gorm/logger"
)
......
......@@ -6,7 +6,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/util/ctxutils"
ctxUtil "gitlab.wanzhuangkj.com/tush/xpkg/xutils/ctxutils"
)
func Go(ctx context.Context, n int, fn func() error) error {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论