recommender/internal/schema/entity.go
2024-11-06 18:47:56 +08:00

18 lines
254 B
Go

package schema
import (
"strconv"
)
type EntityId uint
//type EntityId int64
func (i EntityId) String() string {
return strconv.FormatUint(uint64(i), 10)
//return strconv.FormatInt(int64(i), 10)
}
func (i EntityId) Uint() uint {
return uint(i)
}