2023-09-26 16:23:44 +08:00

28 lines
610 B
Go

// ================================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
type (
ISnowID interface {
GenID() (uint64, error)
}
)
var (
localSnowID ISnowID
)
func SnowID() ISnowID {
if localSnowID == nil {
panic("implement not found for interface ISnowID, forgot register?")
}
return localSnowID
}
func RegisterSnowID(i ISnowID) {
localSnowID = i
}