整个包结构重构
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package common
|
||||
|
||||
import "time"
|
||||
|
||||
type ContextBase struct {
|
||||
Error
|
||||
tag int64
|
||||
}
|
||||
|
||||
//唯一标志
|
||||
func (this *ContextBase) GetTag() int64 {
|
||||
|
||||
if this.tag == int64(0) {
|
||||
this.tag = time.Now().UnixNano()
|
||||
}
|
||||
return this.tag
|
||||
}
|
||||
Reference in New Issue
Block a user