2022-10-04 16:38:43 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2023-02-19 23:21:47 +08:00
|
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
|
|
//
|
|
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
2022-10-04 16:38:43 +08:00
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
2023-02-20 14:42:17 +08:00
|
|
|
// energy Id生成器
|
2022-10-04 13:21:05 +08:00
|
|
|
package cef
|
|
|
|
|
|
|
|
var (
|
|
|
|
_bind_id = 10000
|
|
|
|
_event_id = 10000
|
|
|
|
)
|
|
|
|
|
2023-02-20 14:42:17 +08:00
|
|
|
// __bind_id 绑定变量ID
|
2022-10-04 13:21:05 +08:00
|
|
|
func __bind_id() int {
|
|
|
|
_bind_id++
|
|
|
|
return _bind_id
|
|
|
|
}
|
|
|
|
|
2023-02-20 14:42:17 +08:00
|
|
|
// __idReset 重置ID
|
2022-10-04 13:21:05 +08:00
|
|
|
func __idReset() {
|
|
|
|
_bind_id = 10000
|
|
|
|
}
|
|
|
|
|
2023-02-20 14:42:17 +08:00
|
|
|
// __event_id 事件ID
|
2022-10-04 13:21:05 +08:00
|
|
|
func __event_id() int {
|
|
|
|
_event_id++
|
|
|
|
return _event_id
|
|
|
|
}
|