Skip to content

Commit

Permalink
feat(项目): 从id改为pid
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed Dec 7, 2022
1 parent 223fa32 commit faf9bb4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion autoincrement.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package id
package pid

type autoincrement struct {
// 起始值
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package id
package pid

type config struct {
// 自增算法配置
Expand Down
3 changes: 2 additions & 1 deletion generator.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package id
package pid

import (
"github.com/goexl/id"
"github.com/pangum/logging"
"github.com/pangum/pangu"
)

// Generator 点位,以直接引入带替间接引入
type Generator struct {
id.Generator
}
Expand Down
2 changes: 1 addition & 1 deletion pangu.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package id
package pid

import (
"github.com/pangum/pangu"
Expand Down
2 changes: 1 addition & 1 deletion pangu_config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package id
package pid

type panguConfig struct {
Id *config
Expand Down
2 changes: 1 addition & 1 deletion snowflake.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package id
package pid

type snowflake struct {
// 节点
Expand Down

0 comments on commit faf9bb4

Please sign in to comment.