Update server side structure
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
'use strict'
|
||||
|
||||
class IDs
|
||||
{
|
||||
constructor()
|
||||
{
|
||||
this.last_id = 0
|
||||
}
|
||||
|
||||
get_id()
|
||||
{
|
||||
return ++this.last_id
|
||||
}
|
||||
}
|
||||
|
||||
let ids = new IDs()
|
||||
|
||||
module.exports = ids
|
||||
Reference in New Issue
Block a user