28 lines
646 B
Go
28 lines
646 B
Go
package openapiiot
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/dao"
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/library/xgorm/handler"
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/service"
|
|
|
|
"github.com/gogf/gf/v2/database/gdb"
|
|
)
|
|
|
|
type sSimCardInfo struct{}
|
|
|
|
func init() {
|
|
service.RegisterIotTSimCardInfo(&sSimCardInfo{})
|
|
}
|
|
|
|
func (s *sSimCardInfo) Model(ctx context.Context, option ...*handler.Option) *gdb.Model {
|
|
if len(option) == 0 {
|
|
option = append(option, &handler.Option{
|
|
FilterAuth: true,
|
|
FilterTenant: true,
|
|
})
|
|
}
|
|
return handler.Model(dao.TSimCardInfo.Ctx(ctx), option...)
|
|
}
|