Browse Source

omit empty.

master v0.1.2
ldf 3 years ago
parent
commit
9fe7706466
  1. 10
      module/task/task.go

10
module/task/task.go

@ -15,15 +15,15 @@ type Data struct {
} }
type Request struct { type Request struct {
ResourceSubtype string `json:"resource_subtype"`
ResourceSubtype string `json:"resource_subtype,omitempty"`
Assignee string `json:"assignee"` Assignee string `json:"assignee"`
Name string `json:"name"` Name string `json:"name"`
Completed bool `json:"completed"`
DueOn string `json:"due_on"`
Liked bool `json:"linked"`
Completed bool `json:"completed,omitempty"`
DueOn string `json:"due_on,omitempty"`
Liked bool `json:"linked,omitempty"`
// Notes refer to the content of each Ticket // Notes refer to the content of each Ticket
Notes string `json:"notes"` Notes string `json:"notes"`
StartOn string `json:"start_on"`
StartOn string `json:"start_on,omitempty"`
CustomFields map[string]string `json:"custom_fields"` CustomFields map[string]string `json:"custom_fields"`
Projects []string `json:"projects"` Projects []string `json:"projects"`
Workspace string `json:"workspace"` Workspace string `json:"workspace"`

Loading…
Cancel
Save