mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
refactored unique ID generator package
This commit is contained in:
parent
cf58f8164d
commit
fe05cf7bb5
16 changed files with 69 additions and 64 deletions
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/documize/community/core/api/request"
|
||||
"github.com/documize/community/core/api/util"
|
||||
"github.com/documize/community/core/log"
|
||||
|
||||
"github.com/documize/community/core/uniqueid"
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
|
@ -62,7 +62,7 @@ func AddPin(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
pin.RefID = util.UniqueID()
|
||||
pin.RefID = uniqueid.Generate()
|
||||
pin.OrgID = p.Context.OrgID
|
||||
pin.UserID = p.Context.UserID
|
||||
pin.Pin = strings.TrimSpace(pin.Pin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue