package service

import (
	"be.ems/src/modules/tool/model"
	"be.ems/src/modules/tool/repository"
)

// 实例化数据层 MMLSubscriber 结构体
var NewMMLSubscriber = &MMLSubscriber{
	mmlSubscriberRepository: repository.NewMMLSubscriber,
}

// MMLSubscriber MML网元命令 服务层处理
type MMLSubscriber struct {
	mmlSubscriberRepository *repository.MMLSubscriber
}

// FindByPage 分页查询列表数据
func (s MMLSubscriber) FindByPage(query map[string]string) ([]model.MMLSubscriber, int64) {
	return s.mmlSubscriberRepository.SelectByPage(query)
}
