task.go 682 B

1234567891011121314151617181920212223242526
  1. package rpcs
  2. // ArgsSubmitTask 任务提交参数
  3. type ArgsSubmitTask struct {
  4. Type string // 任务类型,(timer|以后扩展)
  5. Data string // 任务配置JSON字符串
  6. }
  7. type ArgsSubmitTaskLifecycle struct {
  8. TaskId string `json:"task_id"`
  9. Action string `json:"action"`
  10. Data string `json:"data"`
  11. }
  12. type ReplySubmitTask ReplyEmptyResult
  13. type ArgsSubmitSceneAction struct {
  14. Id string `json:"id"`
  15. Name string `json:"name"`
  16. Status int `json:"status"`
  17. Action string `json:"action"`
  18. SceneType string `json:"scene_type"`
  19. DeviceType string `json:"device_type"`
  20. Config string `json:"config"`
  21. }
  22. type ReplySubmitSceneAction ReplyEmptyResult