chore: 并入 iotlcm-app 历史到 app/(原提交 f40bda9)
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
// ================================================================================
|
||||
// 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 (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
)
|
||||
|
||||
type (
|
||||
IInfo interface {
|
||||
GetInfo() *model.InfoModel
|
||||
SetInfoName(Type string, Name string, Title string, Description string)
|
||||
SetInfoBuild(buildVersion string, buildTime string, commitID string)
|
||||
SetInfoData(data map[string]interface{})
|
||||
GetInfoData() map[string]interface{}
|
||||
AddInfoData(key string, value interface{})
|
||||
DelInfoData(key string)
|
||||
GetInfoDataByKey(key string) interface{}
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localInfo IInfo
|
||||
)
|
||||
|
||||
func Info() IInfo {
|
||||
if localInfo == nil {
|
||||
panic("implement not found for interface IInfo, forgot register?")
|
||||
}
|
||||
return localInfo
|
||||
}
|
||||
|
||||
func RegisterInfo(i IInfo) {
|
||||
localInfo = i
|
||||
}
|
||||
Reference in New Issue
Block a user