Skip to content

Commit

Permalink
fix: fix missing 'type' param
Browse files Browse the repository at this point in the history
  • Loading branch information
wwhai committed Dec 11, 2023
1 parent fd939cd commit 14fd237
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type SiemensPointVo struct {
Address *int `json:"address"`
Start *int `json:"start"`
Size *int `json:"size"`
Status *int `json:"status"` // 运行时数据
Status int `json:"status"` // 运行时数据
LastFetchTime uint64 `json:"lastFetchTime"` // 运行时数据
Value string `json:"value"` // 运行时数据
}
Expand Down Expand Up @@ -99,17 +99,17 @@ func SiemensSheetPageList(c *gin.Context, ruleEngine typex.RuleX) {
recordsVo := []SiemensPointVo{}

for _, record := range records {
Status := 1
recordsVo = append(recordsVo, SiemensPointVo{
UUID: record.UUID,
DeviceUUID: record.DeviceUuid,
Tag: record.Tag,
Type: record.Type,
Alias: record.Alias,
Address: record.Address,
Frequency: record.Frequency,
Start: record.Start,
Size: record.Size,
Status: &Status, // 运行时
Status: 1, // 运行时
LastFetchTime: uint64(time.Now().UnixMilli()), // 运行时
Value: "00000000", // 运行时
})
Expand Down
4 changes: 2 additions & 2 deletions typex/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ type Version struct {
var DefaultVersion = Version{
Product: "COMMON",
Version: `v0.6.4`,
ReleaseTime: "2023-12-11 12:56:31",
ReleaseTime: "2023-12-11 20:57:21",
}
var Banner = `
** Welcome to RULEX framework world <'_'>
** Version: v0.6.4-a4c602b67fb543d
** Version: v0.6.4-fd939cd06baef27
** Document: https://hootrhino.github.io
`

0 comments on commit 14fd237

Please sign in to comment.