feat: update pkg name

This commit is contained in:
Rogee
2025-02-11 15:53:14 +08:00
parent 0a420a2987
commit fcae9f2e3f
57 changed files with 92 additions and 1355 deletions

View File

@@ -3,8 +3,8 @@ package publishers
import (
"encoding/json"
"go.ipao.vip/atom/contracts"
"{{.ModuleName}}/app/events"
"{{.ModuleName}}/pkg/atom/contracts"
)
var _ contracts.EventPublisher = (*UserRegister)(nil)

View File

@@ -3,9 +3,9 @@ package subscribers
import (
"encoding/json"
"go.ipao.vip/atom/contracts"
"{{.ModuleName}}/app/events"
"{{.ModuleName}}/app/events/publishers"
"{{.ModuleName}}/pkg/atom/contracts"
"github.com/ThreeDotsLabs/watermill/message"
"github.com/sirupsen/logrus"

View File

@@ -5,8 +5,8 @@ import (
"github.com/riverqueue/river"
"github.com/sirupsen/logrus"
_ "{{.ModuleName}}/pkg/atom"
"{{.ModuleName}}/pkg/atom/contracts"
_ "go.ipao.vip/atom"
"go.ipao.vip/atom/contracts"
)
var _ contracts.CronJob = (*CronJob)(nil)

View File

@@ -7,8 +7,8 @@ import (
. "github.com/riverqueue/river"
log "github.com/sirupsen/logrus"
_ "{{.ModuleName}}/pkg/atom"
_ "{{.ModuleName}}/pkg/atom/contracts"
_ "go.ipao.vip/atom"
_ "go.ipao.vip/atom/contracts"
)
// provider:[except|only] [returnType] [group]

View File

@@ -3,11 +3,11 @@ package event
import (
"context"
"go.ipao.vip/atom"
"go.ipao.vip/atom/container"
"go.ipao.vip/atom/contracts"
"{{.ModuleName}}/app/events/subscribers"
"{{.ModuleName}}/app/service"
"{{.ModuleName}}/pkg/atom"
"{{.ModuleName}}/pkg/atom/container"
"{{.ModuleName}}/pkg/atom/contracts"
"{{.ModuleName}}/providers/app"
"{{.ModuleName}}/providers/event"
"{{.ModuleName}}/providers/postgres"

View File

@@ -1,11 +1,11 @@
package grpc
import (
"go.ipao.vip/atom"
"go.ipao.vip/atom/container"
"go.ipao.vip/atom/contracts"
"{{.ModuleName}}/app/grpc/users"
"{{.ModuleName}}/app/service"
"{{.ModuleName}}/pkg/atom"
"{{.ModuleName}}/pkg/atom/container"
"{{.ModuleName}}/pkg/atom/contracts"
"{{.ModuleName}}/providers/app"
"{{.ModuleName}}/providers/grpc"
"{{.ModuleName}}/providers/postgres"

View File

@@ -1,13 +1,13 @@
package http
import (
"go.ipao.vip/atom"
"go.ipao.vip/atom/container"
"go.ipao.vip/atom/contracts"
"{{.ModuleName}}/app/errorx"
"{{.ModuleName}}/app/jobs"
"{{.ModuleName}}/app/service"
_ "{{.ModuleName}}/docs"
"{{.ModuleName}}/pkg/atom"
"{{.ModuleName}}/pkg/atom/container"
"{{.ModuleName}}/pkg/atom/contracts"
"{{.ModuleName}}/providers/app"
"{{.ModuleName}}/providers/hashids"
"{{.ModuleName}}/providers/http"

View File

@@ -3,11 +3,11 @@ package queue
import (
"context"
"go.ipao.vip/atom"
"go.ipao.vip/atom/container"
"go.ipao.vip/atom/contracts"
"{{.ModuleName}}/app/jobs"
"{{.ModuleName}}/app/service"
"{{.ModuleName}}/pkg/atom"
"{{.ModuleName}}/pkg/atom/container"
"{{.ModuleName}}/pkg/atom/contracts"
"{{.ModuleName}}/providers/app"
"{{.ModuleName}}/providers/job"
"{{.ModuleName}}/providers/postgres"

View File

@@ -1,7 +1,7 @@
package service
import (
"{{.ModuleName}}/pkg/atom/container"
"go.ipao.vip/atom/container"
"{{.ModuleName}}/providers/app"
"{{.ModuleName}}/providers/event"
)

View File

@@ -4,8 +4,8 @@ import (
"os"
"testing"
"{{.ModuleName}}/pkg/atom"
"{{.ModuleName}}/pkg/atom/container"
"go.ipao.vip/atom"
"go.ipao.vip/atom/container"
"github.com/rogeecn/fabfile"
. "github.com/smartystreets/goconvey/convey"