fix
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
// 生成单号
|
||||
|
||||
Reference in New Issue
Block a user