code_gate.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package v1
  2. type CodeGateCheckCodeBody struct {
  3. CodeVal string `form:"CodeVal" json:"CodeVal"`
  4. CodeType string `form:"CodeType" json:"CodeType"`
  5. BrushTime string `form:"BrushTime" json:"BrushTime"`
  6. ViewId string `form:"ViewId" json:"ViewId"`
  7. UID string `form:"UID" json:"UID"`
  8. UKey string `form:"UKey" json:"UKey"`
  9. IsOnline string `form:"IsOnline" json:"IsOnline"`
  10. Property string `form:"Property" json:"Property"`
  11. SN string `form:"SN" json:"SN"`
  12. }
  13. type CodeGateCheckCodeRequest struct {
  14. CodeGateCheckCodeBody
  15. }
  16. type CodeGateCheckCodeResponse struct {
  17. UID string `form:"UID" json:"UID"`
  18. Status int `form:"Status" json:"Status"`
  19. }
  20. type CodeGateIsConnectBody struct {
  21. ViewId string `form:"ViewId" json:"ViewId"`
  22. UID string `form:"UID" json:"UID"`
  23. UKey string `form:"UKey" json:"UKey"`
  24. SN string `form:"SN" json:"SN"`
  25. }
  26. type CodeGateIsConnectRequest struct {
  27. CodeGateIsConnectBody
  28. }
  29. type CodeGateIsConnectResponse struct {
  30. DateTime string `form:"DateTime" json:"DateTime"`
  31. }
  32. type CodeGateQueryCmdBody struct {
  33. ViewId string `form:"ViewId" json:"ViewId"`
  34. UID string `form:"UID" json:"UID"`
  35. UKey string `form:"UKey" json:"UKey"`
  36. SN string `form:"SN" json:"SN"`
  37. TamperAlarm string `form:"TamperAlarm" json:"TamperAlarm"`
  38. DoorMagnetic string `form:"DoorMagnetic" json:"DoorMagnetic"`
  39. }
  40. type CodeGateQueryCmdRequest struct {
  41. CodeGateQueryCmdBody
  42. }
  43. type CodeGateQueryCmdResponse struct {
  44. CmdID string `json:"CmdID"`
  45. CmdCode int `json:"CmdCode"`
  46. //CmdParams string `json:"CmdParams"`
  47. CmdParams []map[string]string `json:"CmdParams"`
  48. }
  49. type CodeGateQueryCmdPostDataBody struct {
  50. ViewId string `form:"ViewId" json:"ViewId"`
  51. UID string `form:"UID" json:"UID"`
  52. UKey string `form:"UKey" json:"UKey"`
  53. SN string `form:"SN" json:"SN"`
  54. CmdID string `form:"CmdID" json:"CmdID"`
  55. CmdCode int `form:"CmdCode" json:"CmdCode"`
  56. CmdParams map[string][]map[string]string `form:"CmdParams" json:"CmdParams"`
  57. CmdStatus int `form:"CmdStatus" json:"CmdStatus"`
  58. }
  59. type CodeGateQueryCmdPostDataRequest struct {
  60. CodeGateQueryCmdPostDataBody
  61. }
  62. type CodeGateQueryCmdPostDataResponse struct {
  63. CmdStatus int `form:"CmdStatus" json:"CmdStatus"`
  64. CmdStatusDesc int `form:"CmdStatusDesc" json:"CmdStatusDesc"`
  65. }