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