iedc-go/common/context_base.go
2021-05-24 07:27:41 +08:00

18 lines
220 B
Go

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
}