auto commit
This commit is contained in:
12
ZeOthers/Vlang/source/gen/YitIdHelper.v
Normal file
12
ZeOthers/Vlang/source/gen/YitIdHelper.v
Normal file
@@ -0,0 +1,12 @@
|
||||
module gen
|
||||
|
||||
import contract
|
||||
|
||||
pub struct YitIdHelper {
|
||||
mut:
|
||||
id_gen contract.IIdGenerator
|
||||
}
|
||||
|
||||
pub fn (yih &YitIdHelper) next_id() u64 {
|
||||
return yih.id_gen.new_long()
|
||||
}
|
||||
Reference in New Issue
Block a user