From 9fe770646610dfcb10044765a14777c3f2c4c350 Mon Sep 17 00:00:00 2001 From: ldf Date: Thu, 12 Aug 2021 01:20:56 +0800 Subject: [PATCH] omit empty. --- module/task/task.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/task/task.go b/module/task/task.go index 4d98ecd..5c3309f 100644 --- a/module/task/task.go +++ b/module/task/task.go @@ -15,15 +15,15 @@ type Data struct { } type Request struct { - ResourceSubtype string `json:"resource_subtype"` + ResourceSubtype string `json:"resource_subtype,omitempty"` Assignee string `json:"assignee"` 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 string `json:"notes"` - StartOn string `json:"start_on"` + StartOn string `json:"start_on,omitempty"` CustomFields map[string]string `json:"custom_fields"` Projects []string `json:"projects"` Workspace string `json:"workspace"`