19 lines
325 B
Go
19 lines
325 B
Go
package alarm
|
|
|
|
import "context"
|
|
|
|
// AlarmService 定义了告警领域服务接口。
|
|
type AlarmService interface {
|
|
}
|
|
|
|
// alarmService 是 AlarmService 接口的具体实现。
|
|
type alarmService struct {
|
|
ctx context.Context
|
|
}
|
|
|
|
func NewAlarmService(ctx context.Context) AlarmService {
|
|
return &alarmService{
|
|
ctx: ctx,
|
|
}
|
|
}
|