refactor(backend): Go 模块路径改为 hfb_jysh/backend 并忽略 .openidea
This commit is contained in:
@@ -25,6 +25,7 @@ backend/logs/
|
|||||||
coverage/
|
coverage/
|
||||||
tmp/
|
tmp/
|
||||||
.gocache/
|
.gocache/
|
||||||
|
.openidea/
|
||||||
|
|
||||||
# TypeScript incremental build info
|
# TypeScript incremental build info
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
|
|||||||
+16
-16
@@ -10,22 +10,22 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/config"
|
"hfb_jysh/backend/internal/config"
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/jobs/distributionsettlement"
|
"hfb_jysh/backend/internal/jobs/distributionsettlement"
|
||||||
"hfb_sys/backend/internal/jobs/fileuploadcleanup"
|
"hfb_jysh/backend/internal/jobs/fileuploadcleanup"
|
||||||
"hfb_sys/backend/internal/jobs/listingstale"
|
"hfb_jysh/backend/internal/jobs/listingstale"
|
||||||
"hfb_sys/backend/internal/jobs/ordertimeout"
|
"hfb_jysh/backend/internal/jobs/ordertimeout"
|
||||||
"hfb_sys/backend/internal/jobs/refundretry"
|
"hfb_jysh/backend/internal/jobs/refundretry"
|
||||||
"hfb_sys/backend/internal/jobs/smsdispatch"
|
"hfb_jysh/backend/internal/jobs/smsdispatch"
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
"hfb_sys/backend/internal/modules/adminauth"
|
"hfb_jysh/backend/internal/modules/adminauth"
|
||||||
"hfb_sys/backend/internal/modules/distribution"
|
"hfb_jysh/backend/internal/modules/distribution"
|
||||||
"hfb_sys/backend/internal/modules/order"
|
"hfb_jysh/backend/internal/modules/order"
|
||||||
"hfb_sys/backend/internal/modules/payment"
|
"hfb_jysh/backend/internal/modules/payment"
|
||||||
"hfb_sys/backend/internal/modules/paymentconfig"
|
"hfb_jysh/backend/internal/modules/paymentconfig"
|
||||||
"hfb_sys/backend/internal/modules/systemconfig"
|
"hfb_jysh/backend/internal/modules/systemconfig"
|
||||||
"hfb_sys/backend/internal/router"
|
"hfb_jysh/backend/internal/router"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -20,12 +20,12 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/config"
|
"hfb_jysh/backend/internal/config"
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/invitation"
|
"hfb_jysh/backend/internal/modules/invitation"
|
||||||
"hfb_sys/backend/pkg/money"
|
"hfb_jysh/backend/pkg/money"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -24,13 +24,13 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/config"
|
"hfb_jysh/backend/internal/config"
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/invitation"
|
"hfb_jysh/backend/internal/modules/invitation"
|
||||||
"hfb_sys/backend/internal/modules/pickup"
|
"hfb_jysh/backend/internal/modules/pickup"
|
||||||
"hfb_sys/backend/pkg/money"
|
"hfb_jysh/backend/pkg/money"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/config"
|
"hfb_jysh/backend/internal/config"
|
||||||
filemodule "hfb_sys/backend/internal/modules/file"
|
filemodule "hfb_jysh/backend/internal/modules/file"
|
||||||
|
|
||||||
"github.com/minio/minio-go/v7"
|
"github.com/minio/minio-go/v7"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
module hfb_sys/backend
|
module hfb_jysh/backend
|
||||||
|
|
||||||
go 1.26
|
go 1.26
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package auditlog
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/datatypes"
|
"gorm.io/datatypes"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
appLogging "hfb_sys/backend/internal/logging"
|
appLogging "hfb_jysh/backend/internal/logging"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package database
|
package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -12,18 +12,18 @@ import (
|
|||||||
"gorm.io/datatypes"
|
"gorm.io/datatypes"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
"hfb_sys/backend/internal/modules/dispute"
|
"hfb_jysh/backend/internal/modules/dispute"
|
||||||
"hfb_sys/backend/internal/modules/distribution"
|
"hfb_jysh/backend/internal/modules/distribution"
|
||||||
listingpkg "hfb_sys/backend/internal/modules/listing"
|
listingpkg "hfb_jysh/backend/internal/modules/listing"
|
||||||
orderpkg "hfb_sys/backend/internal/modules/order"
|
orderpkg "hfb_jysh/backend/internal/modules/order"
|
||||||
"hfb_sys/backend/internal/modules/payment"
|
"hfb_jysh/backend/internal/modules/payment"
|
||||||
"hfb_sys/backend/internal/modules/paymentconfig"
|
"hfb_jysh/backend/internal/modules/paymentconfig"
|
||||||
"hfb_sys/backend/internal/modules/wallet"
|
"hfb_jysh/backend/internal/modules/wallet"
|
||||||
"hfb_sys/backend/internal/modules/withdrawal"
|
"hfb_jysh/backend/internal/modules/withdrawal"
|
||||||
"hfb_sys/backend/pkg/crypto"
|
"hfb_jysh/backend/pkg/crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func openDistributionE2EDB(t *testing.T) *gorm.DB {
|
func openDistributionE2EDB(t *testing.T) *gorm.DB {
|
||||||
|
|||||||
@@ -8,19 +8,19 @@ import (
|
|||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/adminfinance"
|
"hfb_jysh/backend/internal/modules/adminfinance"
|
||||||
"hfb_sys/backend/internal/modules/dispute"
|
"hfb_jysh/backend/internal/modules/dispute"
|
||||||
"hfb_sys/backend/internal/modules/listing"
|
"hfb_jysh/backend/internal/modules/listing"
|
||||||
"hfb_sys/backend/internal/modules/order"
|
"hfb_jysh/backend/internal/modules/order"
|
||||||
"hfb_sys/backend/internal/modules/payment"
|
"hfb_jysh/backend/internal/modules/payment"
|
||||||
"hfb_sys/backend/internal/modules/paymentaccount"
|
"hfb_jysh/backend/internal/modules/paymentaccount"
|
||||||
"hfb_sys/backend/internal/modules/paymentconfig"
|
"hfb_jysh/backend/internal/modules/paymentconfig"
|
||||||
"hfb_sys/backend/internal/modules/wallet"
|
"hfb_jysh/backend/internal/modules/wallet"
|
||||||
"hfb_sys/backend/internal/modules/withdrawal"
|
"hfb_jysh/backend/internal/modules/withdrawal"
|
||||||
"hfb_sys/backend/pkg/crypto"
|
"hfb_jysh/backend/pkg/crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRentalFullFlowWithMockPayment(t *testing.T) {
|
func TestRentalFullFlowWithMockPayment(t *testing.T) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestVerifyNotifyDetail(t *testing.T) {
|
func TestVerifyNotifyDetail(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/distribution"
|
"hfb_jysh/backend/internal/modules/distribution"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/distribution"
|
"hfb_jysh/backend/internal/modules/distribution"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/sms"
|
"hfb_jysh/backend/internal/modules/sms"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/sms"
|
"hfb_jysh/backend/internal/modules/sms"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/adminnotification"
|
"hfb_jysh/backend/internal/modules/adminnotification"
|
||||||
"hfb_sys/backend/internal/modules/chat"
|
"hfb_jysh/backend/internal/modules/chat"
|
||||||
"hfb_sys/backend/internal/modules/notification"
|
"hfb_jysh/backend/internal/modules/notification"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/chat"
|
"hfb_jysh/backend/internal/modules/chat"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/payment"
|
"hfb_jysh/backend/internal/modules/payment"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/payment"
|
"hfb_jysh/backend/internal/modules/payment"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
smsprovider "hfb_sys/backend/internal/integrations/sms"
|
smsprovider "hfb_jysh/backend/internal/integrations/sms"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/sms"
|
"hfb_jysh/backend/internal/modules/sms"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
smsprovider "hfb_sys/backend/internal/integrations/sms"
|
smsprovider "hfb_jysh/backend/internal/integrations/sms"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/sms"
|
"hfb_jysh/backend/internal/modules/sms"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gorm.io/datatypes"
|
"gorm.io/datatypes"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/config"
|
"hfb_jysh/backend/internal/config"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package middleware
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/sitecode"
|
"hfb_jysh/backend/internal/sitecode"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/sitecode"
|
"hfb_jysh/backend/internal/sitecode"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -33,4 +33,3 @@ type PickupShopMapping struct {
|
|||||||
func (PickupShopMapping) TableName() string {
|
func (PickupShopMapping) TableName() string {
|
||||||
return "pickup_shop_mappings"
|
return "pickup_shop_mappings"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/datatypes"
|
"gorm.io/datatypes"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package adminauth
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AdminDTO struct {
|
type AdminDTO struct {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/captcha"
|
"hfb_jysh/backend/internal/captcha"
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/auth"
|
"hfb_jysh/backend/internal/modules/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/listingstatus"
|
"hfb_jysh/backend/internal/listingstatus"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/listingstatus"
|
"hfb_jysh/backend/internal/listingstatus"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListingDailyOverviewGroupsBySourceChannel(t *testing.T) {
|
func TestListingDailyOverviewGroupsBySourceChannel(t *testing.T) {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
ordermodule "hfb_sys/backend/internal/modules/order"
|
ordermodule "hfb_jysh/backend/internal/modules/order"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (r *Repository) Dashboard(ctx context.Context, query DashboardQuery) (*DashboardDTO, error) {
|
func (r *Repository) Dashboard(ctx context.Context, query DashboardQuery) (*DashboardDTO, error) {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDailyPaidOrdersUsePaidAtAndIncludeCreatedPickups(t *testing.T) {
|
func TestDailyPaidOrdersUsePaidAtAndIncludeCreatedPickups(t *testing.T) {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDisbursementListCombinesPlatformSettlementsAndWithdrawals(t *testing.T) {
|
func TestDisbursementListCombinesPlatformSettlementsAndWithdrawals(t *testing.T) {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDisbursementStatisticsUseActualPaymentTimeAndAmount(t *testing.T) {
|
func TestDisbursementStatisticsUseActualPaymentTimeAndAmount(t *testing.T) {
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// settlementDiffThresholdCent 是判定"结算差异"的最小绝对金额(分)。
|
// settlementDiffThresholdCent 是判定"结算差异"的最小绝对金额(分)。
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestManualDisbursementCreateAndVoid(t *testing.T) {
|
func TestManualDisbursementCreateAndVoid(t *testing.T) {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/timeutil"
|
"hfb_jysh/backend/internal/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestOperatingExpenseCreateListAndVoid(t *testing.T) {
|
func TestOperatingExpenseCreateListAndVoid(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package adminmgr
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/adminrole"
|
"hfb_jysh/backend/internal/modules/adminrole"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AdminUserDTO struct {
|
type AdminUserDTO struct {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/adminrole"
|
"hfb_jysh/backend/internal/modules/adminrole"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package adminnotification
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRepositoryUnreadCountAndMarkRead(t *testing.T) {
|
func TestRepositoryUnreadCountAndMarkRead(t *testing.T) {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/integrations/push"
|
"hfb_jysh/backend/internal/integrations/push"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/auditlog"
|
"hfb_jysh/backend/internal/auditlog"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/invitation"
|
"hfb_jysh/backend/internal/modules/invitation"
|
||||||
"hfb_sys/backend/internal/modules/realname"
|
"hfb_jysh/backend/internal/modules/realname"
|
||||||
"hfb_sys/backend/internal/modules/rentergrowth"
|
"hfb_jysh/backend/internal/modules/rentergrowth"
|
||||||
"hfb_sys/backend/internal/modules/wallet"
|
"hfb_jysh/backend/internal/modules/wallet"
|
||||||
"hfb_sys/backend/pkg/crypto"
|
"hfb_jysh/backend/pkg/crypto"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/rentergrowth"
|
"hfb_jysh/backend/internal/modules/rentergrowth"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/modules/realname"
|
"hfb_jysh/backend/internal/modules/realname"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/internal/sitecode"
|
"hfb_jysh/backend/internal/sitecode"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestPublicScopeAndSiteIsolation 覆盖公告中心的分站可见范围:
|
// TestPublicScopeAndSiteIsolation 覆盖公告中心的分站可见范围:
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/sitecode"
|
"hfb_jysh/backend/internal/sitecode"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/captcha"
|
"hfb_jysh/backend/internal/captcha"
|
||||||
smsprovider "hfb_sys/backend/internal/integrations/sms"
|
smsprovider "hfb_jysh/backend/internal/integrations/sms"
|
||||||
"hfb_sys/backend/internal/logging"
|
"hfb_jysh/backend/internal/logging"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
smsprovider "hfb_sys/backend/internal/integrations/sms"
|
smsprovider "hfb_jysh/backend/internal/integrations/sms"
|
||||||
|
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUserTokenVersionRevokesAccessAndRefreshTokens(t *testing.T) {
|
func TestUserTokenVersionRevokesAccessAndRefreshTokens(t *testing.T) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package chat
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ListingChatCreatorAdapter 适配器,实现 listing.ListingChatCreator 接口
|
// ListingChatCreatorAdapter 适配器,实现 listing.ListingChatCreator 接口
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/database"
|
"hfb_jysh/backend/internal/database"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package chat
|
package chat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package chat
|
package chat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package chat
|
package chat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"hfb_sys/backend/internal/sitecode"
|
"hfb_jysh/backend/internal/sitecode"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package chat
|
|||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"hfb_sys/backend/internal/middleware"
|
"hfb_jysh/backend/internal/middleware"
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package chat
|
package chat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package chat
|
package chat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"hfb_sys/backend/pkg/response"
|
"hfb_jysh/backend/pkg/response"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
"hfb_sys/backend/internal/integrations/push"
|
"hfb_jysh/backend/internal/integrations/push"
|
||||||
"hfb_sys/backend/internal/model"
|
"hfb_jysh/backend/internal/model"
|
||||||
"hfb_sys/backend/internal/modules/supportgroup"
|
"hfb_jysh/backend/internal/modules/supportgroup"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 会话类型常量
|
// 会话类型常量
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user