added admin verification for updating and creating functions
This commit is contained in:
1 parent
b20e1f04c5
commit
dea4654cb1
4 files changed
+475
-80
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Id struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
CID string `bson:"cid"` // custom id for admin, teahcer or student
|
||||
}
|
||||
Reference in new issue
Block a user