新增获取终端数量统计,任务统计
This commit is contained in:
32
internal/service/statistic.go
Normal file
32
internal/service/statistic.go
Normal file
@ -0,0 +1,32 @@
|
||||
// ================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"server/internal/model"
|
||||
)
|
||||
|
||||
type (
|
||||
IStatistic interface {
|
||||
GetOnlineDevice(ctx context.Context, in *model.GetOnlineDeviceIn) (out *model.GetOnlineDeviceOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localStatistic IStatistic
|
||||
)
|
||||
|
||||
func Statistic() IStatistic {
|
||||
if localStatistic == nil {
|
||||
panic("implement not found for interface IStatistic, forgot register?")
|
||||
}
|
||||
return localStatistic
|
||||
}
|
||||
|
||||
func RegisterStatistic(i IStatistic) {
|
||||
localStatistic = i
|
||||
}
|
||||
Reference in New Issue
Block a user