electricity_bill_calc_service/vo/synchronize.go
2023-08-04 17:11:10 +08:00

30 lines
2.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package vo
type SynchronizeConfiguration struct {
CollectAt string `json:"collectAt"` // 采集时间格式HH:mm
EntID string `json:"entId"` // 企业ID
Imrs string `json:"imrs"` // 采集系统型号
ImrsAccount string `json:"imrsAccount"` // 同步登录账号
ImrsKey string `json:"imrsKey"` // 同步登录私钥Base64或者私钥文件内容
ImrsSecret string `json:"imrsSecret"` // 同步登录密钥,加盐双向加密
Interval float64 `json:"interval"` // 采集周期0每小时1每日2每周3每月
MaxRetries string `json:"maxRetries"` // 最大重试次数
ParkID string `json:"parkId"` // 园区ID
ReadingType float64 `json:"readingType"` // 采集方式0自动+人工1自动2人工
RetryAlgorithm float64 `json:"retryAlgorithm"` // 重试间隔算法0指数退避12倍线性间隔23倍线性间隔3固定间隔
RetryInterval string `json:"retryInterval"` // 重试间隔,基础间隔时间,根据间隔算法不同会产生不同的间隔
}
type SynchronizeConfigurationCreateForm struct {
CollectAt string `json:"collectAt"` // 采集时间格式HH:mm
Imrs string `json:"imrs"` // 采集系统型号,为空的时候表示不同步
ImrsAccount string `json:"imrsAccount"` // 同步登录账号
ImrsKey string `json:"imrsKey"` // 同步登录私钥Base64或者私钥文件内容
ImrsSecret string `json:"imrsSecret"` // 同步登录密钥,加盐双向加密
Interval float64 `json:"interval"` // 采集周期0每小时1每日2每周3每月
MaxRetries string `json:"maxRetries"` // 最大重试次数
ParkID string `json:"parkId"` // 园区ID
ReadingType float64 `json:"readingType"` // 采集方式0自动+人工1自动2人工
RetryAlgorithm float64 `json:"retryAlgorithm"` // 重试间隔算法0指数退避12倍线性间隔23倍线性间隔3固定间隔
RetryInterval string `json:"retryInterval"` // 重试间隔,基础间隔时间,根据间隔算法不同会产生不同的间隔
}