package service import ( "context" "git.5iot.com/iotlcm-public/iotlcm-openapi/internal/library/xgorm/handler" "github.com/gogf/gf/v2/database/gdb" ) type ( IIotTSimCardInfo interface { Model(ctx context.Context, option ...*handler.Option) *gdb.Model } ) var ( localIotTSimCardInfo IIotTSimCardInfo ) func IotTSimCardInfo() IIotTSimCardInfo { if localIotTSimCardInfo == nil { panic("implement not found for interface IIotTSimCardInfo, forgot register?") } return localIotTSimCardInfo } func RegisterIotTSimCardInfo(i IIotTSimCardInfo) { localIotTSimCardInfo = i }