chore: 并入 iotlcm-openapi 历史到 openapi/(原提交 3b05d5a)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user