meter.go 633 B

1234567891011121314151617181920212223242526
  1. package dto
  2. // GetMeterRatioReq 读取电表变比
  3. type GetMeterRatioReq struct {
  4. SN string `json:"sn"`
  5. Type string `json:"type"`
  6. Addr int `json:"addr"`
  7. Result int `json:"result"`
  8. SerData string `json:"serData"`
  9. }
  10. // SetMeterRatioReq 设置电表变比
  11. type SetMeterRatioReq struct {
  12. SN string `json:"sn"`
  13. Addr int `json:"addr"`
  14. Type string `json:"type"`
  15. SerData string `json:"serData"`
  16. }
  17. // SetMeterAddressReq 设置电表地址
  18. type SetMeterAddressReq struct {
  19. SN string `json:"sn"`
  20. AddrOld int `json:"addrOld"`
  21. AddrNew int `json:"addrNew"`
  22. Type string `json:"type"`
  23. }