This commit is contained in:
2025-09-30 17:44:18 +08:00
parent 898339fd5d
commit f4b7e6e2df
393 changed files with 4530 additions and 2061 deletions

View File

@@ -2,11 +2,11 @@ package ctxdata
import (
"context"
"tydata-server/app/main/model"
jwtx "tydata-server/common/jwt"
"encoding/json"
"errors"
"fmt"
"hm-server/app/main/model"
jwtx "hm-server/common/jwt"
)
const CtxKeyJwtUserId = "userId"

View File

@@ -3,7 +3,7 @@ package rpcserver
import (
"context"
"hm-server/common/xerr"
"tydata-server/common/xerr"
"github.com/pkg/errors"
"github.com/zeromicro/go-zero/core/logx"

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"net/http"
"hm-server/common/xerr"
"tydata-server/common/xerr"
"github.com/pkg/errors"
"github.com/zeromicro/go-zero/core/logx"

View File

@@ -3,7 +3,7 @@ package result
import (
"context"
"hm-server/common/xerr"
"tydata-server/common/xerr"
"github.com/pkg/errors"
"github.com/zeromicro/go-zero/core/logx"

View File

@@ -1,17 +1,17 @@
package uniqueid
import (
"tydata-server/common/tool"
"fmt"
"time"
"hm-server/common/tool"
)
// 生成sn单号
type SnPrefix string
const (
SN_PREFIX_HOMESTAY_ORDER SnPrefix = "HSO" //民宿订单前缀 hm-server_order/homestay_order
SN_PREFIX_THIRD_PAYMENT SnPrefix = "PMT" //第三方支付流水记录前缀 hm-server_payment/third_payment
SN_PREFIX_HOMESTAY_ORDER SnPrefix = "HSO" //民宿订单前缀 tydata-server_order/homestay_order
SN_PREFIX_THIRD_PAYMENT SnPrefix = "PMT" //第三方支付流水记录前缀 tydata-server_payment/third_payment
)
// 生成单号