Skip to content

Commit

Permalink
Merge pull request #92 from tada-team/feat_subtask_taskfilter
Browse files Browse the repository at this point in the history
feat: add Deadline to SubTask, add contact_section to task filter
  • Loading branch information
WCStudio2017 authored May 4, 2022
2 parents 23e5523 + d654004 commit f9e2c1d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.50.24
- feat(TaskFilter): add filter contact_section
- feat(Subtask): add Deadline

v1.50.9
- feat(contact): add id field for contactFilter

Expand Down
3 changes: 3 additions & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ type Subtask struct {

// Subtask task status
TaskStatus string `json:"task_status,omitempty"`

// Deadline task deadline
Deadline ISODateTimeString `json:"deadline,omitempty"`
}

// Task checklist item
Expand Down
4 changes: 3 additions & 1 deletion tdapi/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ type TaskFilter struct {
//* ?section=[ uid,uid... | "-" ]
Section string `schema:"section"` // TODO: rename to ?project=

//* ?contact_section=[ uid,uid... | "-" ]
ContactSection string `schema:"contact_section"` // TODO: rename to ?section=

//* ?tag=[ tag,tag,tag... | "-" ]
Tag string `schema:"tag"`

Expand Down Expand Up @@ -127,4 +130,3 @@ type TaskColors struct {
// Color list
Colors []tdproto.TaskColor `json:"colors"`
}

0 comments on commit f9e2c1d

Please sign in to comment.