task.go 350 B

123456789101112131415
  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