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,9 +22,9 @@ import (
|
|||
|
||||
"github.com/documize/community/core/api/entity"
|
||||
"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/secrets"
|
||||
"github.com/documize/community/core/uniqueid"
|
||||
"github.com/gorilla/mux"
|
||||
_ "github.com/mytrile/mime-ext" // this adds a large number of mime extensions
|
||||
uuid "github.com/nu7hatch/gouuid"
|
||||
|
@ -192,7 +192,7 @@ func AddAttachments(w http.ResponseWriter, r *http.Request) {
|
|||
job = newUUID.String()
|
||||
|
||||
var a entity.Attachment
|
||||
refID := util.UniqueID()
|
||||
refID := uniqueid.Generate()
|
||||
a.RefID = refID
|
||||
a.DocumentID = documentID
|
||||
a.Job = job
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue