// Code generated by ogen, DO NOT EDIT.
package gen
type BearerAuth struct {
Token string
Roles []string
}
// GetToken returns the value of Token.
func (s *BearerAuth) GetToken() string {
return s.Token
}
// GetRoles returns the value of Roles.
func (s *BearerAuth) GetRoles() []string {
return s.Roles
}
// SetToken sets the value of Token.
func (s *BearerAuth) SetToken(val string) {
s.Token = val
}
// SetRoles sets the value of Roles.
func (s *BearerAuth) SetRoles(val []string) {
s.Roles = val
}
// Ref: #/components/schemas/ChecklistItem
type ChecklistItem struct {
ID OptNilString `json:"id"`
Title OptString `json:"title"`
Status OptInt `json:"status"`
SortOrder OptNilInt64 `json:"sortOrder"`
StartDate OptNilString `json:"startDate"`
IsAllDay OptNilBool `json:"isAllDay"`
TimeZone OptNilString `json:"timeZone"`
CompletedTime OptNilString `json:"completedTime"`
}
// GetID returns the value of ID.
func (s *ChecklistItem) GetID() OptNilString {
return s.ID
}
// GetTitle returns the value of Title.
func (s *ChecklistItem) GetTitle() OptString {
return s.Title
}
// GetStatus returns the value of Status.
func (s *ChecklistItem) GetStatus() OptInt {
return s.Status
}
// GetSortOrder returns the value of SortOrder.
func (s *ChecklistItem) GetSortOrder() OptNilInt64 {
return s.SortOrder
}
// GetStartDate returns the value of StartDate.
func (s *ChecklistItem) GetStartDate() OptNilString {
return s.StartDate
}
// GetIsAllDay returns the value of IsAllDay.
func (s *ChecklistItem) GetIsAllDay() OptNilBool {
return s.IsAllDay
}
// GetTimeZone returns the value of TimeZone.
func (s *ChecklistItem) GetTimeZone() OptNilString {
return s.TimeZone
}
// GetCompletedTime returns the value of CompletedTime.
func (s *ChecklistItem) GetCompletedTime() OptNilString {
return s.CompletedTime
}
// SetID sets the value of ID.
func (s *ChecklistItem) SetID(val OptNilString) {
s.ID = val
}
// SetTitle sets the value of Title.
func (s *ChecklistItem) SetTitle(val OptString) {
s.Title = val
}
// SetStatus sets the value of Status.
func (s *ChecklistItem) SetStatus(val OptInt) {
s.Status = val
}
// SetSortOrder sets the value of SortOrder.
func (s *ChecklistItem) SetSortOrder(val OptNilInt64) {
s.SortOrder = val
}
// SetStartDate sets the value of StartDate.
func (s *ChecklistItem) SetStartDate(val OptNilString) {
s.StartDate = val
}
// SetIsAllDay sets the value of IsAllDay.
func (s *ChecklistItem) SetIsAllDay(val OptNilBool) {
s.IsAllDay = val
}
// SetTimeZone sets the value of TimeZone.
func (s *ChecklistItem) SetTimeZone(val OptNilString) {
s.TimeZone = val
}
// SetCompletedTime sets the value of CompletedTime.
func (s *ChecklistItem) SetCompletedTime(val OptNilString) {
s.CompletedTime = val
}
// Ref: #/components/schemas/Column
type Column struct {
ID OptNilString `json:"id"`
ProjectId OptNilString `json:"projectId"`
Name OptString `json:"name"`
SortOrder OptNilInt64 `json:"sortOrder"`
}
// GetID returns the value of ID.
func (s *Column) GetID() OptNilString {
return s.ID
}
// GetProjectId returns the value of ProjectId.
func (s *Column) GetProjectId() OptNilString {
return s.ProjectId
}
// GetName returns the value of Name.
func (s *Column) GetName() OptString {
return s.Name
}
// GetSortOrder returns the value of SortOrder.
func (s *Column) GetSortOrder() OptNilInt64 {
return s.SortOrder
}
// SetID sets the value of ID.
func (s *Column) SetID(val OptNilString) {
s.ID = val
}
// SetProjectId sets the value of ProjectId.
func (s *Column) SetProjectId(val OptNilString) {
s.ProjectId = val
}
// SetName sets the value of Name.
func (s *Column) SetName(val OptString) {
s.Name = val
}
// SetSortOrder sets the value of SortOrder.
func (s *Column) SetSortOrder(val OptNilInt64) {
s.SortOrder = val
}
// CompleteTaskOK is response for CompleteTask operation.
type CompleteTaskOK struct{}
// Ref: #/components/schemas/CreateProjectReq
type CreateProjectReq struct {
Name string `json:"name"`
Color OptString `json:"color"`
ViewMode OptString `json:"viewMode"`
Kind OptString `json:"kind"`
}
// GetName returns the value of Name.
func (s *CreateProjectReq) GetName() string {
return s.Name
}
// GetColor returns the value of Color.
func (s *CreateProjectReq) GetColor() OptString {
return s.Color
}
// GetViewMode returns the value of ViewMode.
func (s *CreateProjectReq) GetViewMode() OptString {
return s.ViewMode
}
// GetKind returns the value of Kind.
func (s *CreateProjectReq) GetKind() OptString {
return s.Kind
}
// SetName sets the value of Name.
func (s *CreateProjectReq) SetName(val string) {
s.Name = val
}
// SetColor sets the value of Color.
func (s *CreateProjectReq) SetColor(val OptString) {
s.Color = val
}
// SetViewMode sets the value of ViewMode.
func (s *CreateProjectReq) SetViewMode(val OptString) {
s.ViewMode = val
}
// SetKind sets the value of Kind.
func (s *CreateProjectReq) SetKind(val OptString) {
s.Kind = val
}
// Ref: #/components/schemas/CreateTaskReq
type CreateTaskReq struct {
Title string `json:"title"`
ProjectId OptString `json:"projectId"`
Content OptString `json:"content"`
Desc OptString `json:"desc"`
IsAllDay OptBool `json:"isAllDay"`
StartDate OptString `json:"startDate"`
DueDate OptString `json:"dueDate"`
TimeZone OptString `json:"timeZone"`
Reminders []string `json:"reminders"`
RepeatFlag OptString `json:"repeatFlag"`
Priority OptInt `json:"priority"`
SortOrder OptInt64 `json:"sortOrder"`
Items []ChecklistItem `json:"items"`
}
// GetTitle returns the value of Title.
func (s *CreateTaskReq) GetTitle() string {
return s.Title
}
// GetProjectId returns the value of ProjectId.
func (s *CreateTaskReq) GetProjectId() OptString {
return s.ProjectId
}
// GetContent returns the value of Content.
func (s *CreateTaskReq) GetContent() OptString {
return s.Content
}
// GetDesc returns the value of Desc.
func (s *CreateTaskReq) GetDesc() OptString {
return s.Desc
}
// GetIsAllDay returns the value of IsAllDay.
func (s *CreateTaskReq) GetIsAllDay() OptBool {
return s.IsAllDay
}
// GetStartDate returns the value of StartDate.
func (s *CreateTaskReq) GetStartDate() OptString {
return s.StartDate
}
// GetDueDate returns the value of DueDate.
func (s *CreateTaskReq) GetDueDate() OptString {
return s.DueDate
}
// GetTimeZone returns the value of TimeZone.
func (s *CreateTaskReq) GetTimeZone() OptString {
return s.TimeZone
}
// GetReminders returns the value of Reminders.
func (s *CreateTaskReq) GetReminders() []string {
return s.Reminders
}
// GetRepeatFlag returns the value of RepeatFlag.
func (s *CreateTaskReq) GetRepeatFlag() OptString {
return s.RepeatFlag
}
// GetPriority returns the value of Priority.
func (s *CreateTaskReq) GetPriority() OptInt {
return s.Priority
}
// GetSortOrder returns the value of SortOrder.
func (s *CreateTaskReq) GetSortOrder() OptInt64 {
return s.SortOrder
}
// GetItems returns the value of Items.
func (s *CreateTaskReq) GetItems() []ChecklistItem {
return s.Items
}
// SetTitle sets the value of Title.
func (s *CreateTaskReq) SetTitle(val string) {
s.Title = val
}
// SetProjectId sets the value of ProjectId.
func (s *CreateTaskReq) SetProjectId(val OptString) {
s.ProjectId = val
}
// SetContent sets the value of Content.
func (s *CreateTaskReq) SetContent(val OptString) {
s.Content = val
}
// SetDesc sets the value of Desc.
func (s *CreateTaskReq) SetDesc(val OptString) {
s.Desc = val
}
// SetIsAllDay sets the value of IsAllDay.
func (s *CreateTaskReq) SetIsAllDay(val OptBool) {
s.IsAllDay = val
}
// SetStartDate sets the value of StartDate.
func (s *CreateTaskReq) SetStartDate(val OptString) {
s.StartDate = val
}
// SetDueDate sets the value of DueDate.
func (s *CreateTaskReq) SetDueDate(val OptString) {
s.DueDate = val
}
// SetTimeZone sets the value of TimeZone.
func (s *CreateTaskReq) SetTimeZone(val OptString) {
s.TimeZone = val
}
// SetReminders sets the value of Reminders.
func (s *CreateTaskReq) SetReminders(val []string) {
s.Reminders = val
}
// SetRepeatFlag sets the value of RepeatFlag.
func (s *CreateTaskReq) SetRepeatFlag(val OptString) {
s.RepeatFlag = val
}
// SetPriority sets the value of Priority.
func (s *CreateTaskReq) SetPriority(val OptInt) {
s.Priority = val
}
// SetSortOrder sets the value of SortOrder.
func (s *CreateTaskReq) SetSortOrder(val OptInt64) {
s.SortOrder = val
}
// SetItems sets the value of Items.
func (s *CreateTaskReq) SetItems(val []ChecklistItem) {
s.Items = val
}
// DeleteProjectOK is response for DeleteProject operation.
type DeleteProjectOK struct{}
// DeleteTaskOK is response for DeleteTask operation.
type DeleteTaskOK struct{}
// NewOptBool returns new OptBool with value set to v.
func NewOptBool(v bool) OptBool {
return OptBool{
Value: v,
Set: true,
}
}
// OptBool is optional bool.
type OptBool struct {
Value bool
Set bool
}
// IsSet returns true if OptBool was set.
func (o OptBool) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptBool) Reset() {
var v bool
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptBool) SetTo(v bool) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptBool) Get() (v bool, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptBool) Or(d bool) bool {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptInt returns new OptInt with value set to v.
func NewOptInt(v int) OptInt {
return OptInt{
Value: v,
Set: true,
}
}
// OptInt is optional int.
type OptInt struct {
Value int
Set bool
}
// IsSet returns true if OptInt was set.
func (o OptInt) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptInt) Reset() {
var v int
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptInt) SetTo(v int) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptInt) Get() (v int, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptInt) Or(d int) int {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptInt64 returns new OptInt64 with value set to v.
func NewOptInt64(v int64) OptInt64 {
return OptInt64{
Value: v,
Set: true,
}
}
// OptInt64 is optional int64.
type OptInt64 struct {
Value int64
Set bool
}
// IsSet returns true if OptInt64 was set.
func (o OptInt64) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptInt64) Reset() {
var v int64
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptInt64) SetTo(v int64) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptInt64) Get() (v int64, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptInt64) Or(d int64) int64 {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilBool returns new OptNilBool with value set to v.
func NewOptNilBool(v bool) OptNilBool {
return OptNilBool{
Value: v,
Set: true,
}
}
// OptNilBool is optional nullable bool.
type OptNilBool struct {
Value bool
Set bool
Null bool
}
// IsSet returns true if OptNilBool was set.
func (o OptNilBool) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilBool) Reset() {
var v bool
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilBool) SetTo(v bool) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilBool) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilBool) SetToNull() {
o.Set = true
o.Null = true
var v bool
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilBool) Get() (v bool, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilBool) Or(d bool) bool {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilChecklistItemArray returns new OptNilChecklistItemArray with value set to v.
func NewOptNilChecklistItemArray(v []ChecklistItem) OptNilChecklistItemArray {
return OptNilChecklistItemArray{
Value: v,
Set: true,
}
}
// OptNilChecklistItemArray is optional nullable []ChecklistItem.
type OptNilChecklistItemArray struct {
Value []ChecklistItem
Set bool
Null bool
}
// IsSet returns true if OptNilChecklistItemArray was set.
func (o OptNilChecklistItemArray) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilChecklistItemArray) Reset() {
var v []ChecklistItem
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilChecklistItemArray) SetTo(v []ChecklistItem) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilChecklistItemArray) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilChecklistItemArray) SetToNull() {
o.Set = true
o.Null = true
var v []ChecklistItem
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilChecklistItemArray) Get() (v []ChecklistItem, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilChecklistItemArray) Or(d []ChecklistItem) []ChecklistItem {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilColumnArray returns new OptNilColumnArray with value set to v.
func NewOptNilColumnArray(v []Column) OptNilColumnArray {
return OptNilColumnArray{
Value: v,
Set: true,
}
}
// OptNilColumnArray is optional nullable []Column.
type OptNilColumnArray struct {
Value []Column
Set bool
Null bool
}
// IsSet returns true if OptNilColumnArray was set.
func (o OptNilColumnArray) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilColumnArray) Reset() {
var v []Column
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilColumnArray) SetTo(v []Column) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilColumnArray) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilColumnArray) SetToNull() {
o.Set = true
o.Null = true
var v []Column
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilColumnArray) Get() (v []Column, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilColumnArray) Or(d []Column) []Column {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilInt64 returns new OptNilInt64 with value set to v.
func NewOptNilInt64(v int64) OptNilInt64 {
return OptNilInt64{
Value: v,
Set: true,
}
}
// OptNilInt64 is optional nullable int64.
type OptNilInt64 struct {
Value int64
Set bool
Null bool
}
// IsSet returns true if OptNilInt64 was set.
func (o OptNilInt64) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilInt64) Reset() {
var v int64
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilInt64) SetTo(v int64) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilInt64) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilInt64) SetToNull() {
o.Set = true
o.Null = true
var v int64
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilInt64) Get() (v int64, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilInt64) Or(d int64) int64 {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilString returns new OptNilString with value set to v.
func NewOptNilString(v string) OptNilString {
return OptNilString{
Value: v,
Set: true,
}
}
// OptNilString is optional nullable string.
type OptNilString struct {
Value string
Set bool
Null bool
}
// IsSet returns true if OptNilString was set.
func (o OptNilString) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilString) Reset() {
var v string
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilString) SetTo(v string) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilString) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilString) SetToNull() {
o.Set = true
o.Null = true
var v string
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilString) Get() (v string, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilString) Or(d string) string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilStringArray returns new OptNilStringArray with value set to v.
func NewOptNilStringArray(v []string) OptNilStringArray {
return OptNilStringArray{
Value: v,
Set: true,
}
}
// OptNilStringArray is optional nullable []string.
type OptNilStringArray struct {
Value []string
Set bool
Null bool
}
// IsSet returns true if OptNilStringArray was set.
func (o OptNilStringArray) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilStringArray) Reset() {
var v []string
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilStringArray) SetTo(v []string) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilStringArray) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilStringArray) SetToNull() {
o.Set = true
o.Null = true
var v []string
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilStringArray) Get() (v []string, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilStringArray) Or(d []string) []string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilTaskArray returns new OptNilTaskArray with value set to v.
func NewOptNilTaskArray(v []Task) OptNilTaskArray {
return OptNilTaskArray{
Value: v,
Set: true,
}
}
// OptNilTaskArray is optional nullable []Task.
type OptNilTaskArray struct {
Value []Task
Set bool
Null bool
}
// IsSet returns true if OptNilTaskArray was set.
func (o OptNilTaskArray) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilTaskArray) Reset() {
var v []Task
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilTaskArray) SetTo(v []Task) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilTaskArray) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilTaskArray) SetToNull() {
o.Set = true
o.Null = true
var v []Task
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilTaskArray) Get() (v []Task, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilTaskArray) Or(d []Task) []Task {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptProject returns new OptProject with value set to v.
func NewOptProject(v Project) OptProject {
return OptProject{
Value: v,
Set: true,
}
}
// OptProject is optional Project.
type OptProject struct {
Value Project
Set bool
}
// IsSet returns true if OptProject was set.
func (o OptProject) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptProject) Reset() {
var v Project
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptProject) SetTo(v Project) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptProject) Get() (v Project, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptProject) Or(d Project) Project {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptString returns new OptString with value set to v.
func NewOptString(v string) OptString {
return OptString{
Value: v,
Set: true,
}
}
// OptString is optional string.
type OptString struct {
Value string
Set bool
}
// IsSet returns true if OptString was set.
func (o OptString) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptString) Reset() {
var v string
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptString) SetTo(v string) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptString) Get() (v string, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptString) Or(d string) string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// Ref: #/components/schemas/Project
type Project struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
Color OptNilString `json:"color"`
SortOrder OptNilInt64 `json:"sortOrder"`
SortType OptNilString `json:"sortType"`
ViewMode OptNilString `json:"viewMode"`
Kind OptNilString `json:"kind"`
GroupId OptNilString `json:"groupId"`
IsOwner OptNilBool `json:"isOwner"`
Closed OptNilBool `json:"closed"`
ModifiedTime OptNilString `json:"modifiedTime"`
}
// GetID returns the value of ID.
func (s *Project) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *Project) GetName() OptString {
return s.Name
}
// GetColor returns the value of Color.
func (s *Project) GetColor() OptNilString {
return s.Color
}
// GetSortOrder returns the value of SortOrder.
func (s *Project) GetSortOrder() OptNilInt64 {
return s.SortOrder
}
// GetSortType returns the value of SortType.
func (s *Project) GetSortType() OptNilString {
return s.SortType
}
// GetViewMode returns the value of ViewMode.
func (s *Project) GetViewMode() OptNilString {
return s.ViewMode
}
// GetKind returns the value of Kind.
func (s *Project) GetKind() OptNilString {
return s.Kind
}
// GetGroupId returns the value of GroupId.
func (s *Project) GetGroupId() OptNilString {
return s.GroupId
}
// GetIsOwner returns the value of IsOwner.
func (s *Project) GetIsOwner() OptNilBool {
return s.IsOwner
}
// GetClosed returns the value of Closed.
func (s *Project) GetClosed() OptNilBool {
return s.Closed
}
// GetModifiedTime returns the value of ModifiedTime.
func (s *Project) GetModifiedTime() OptNilString {
return s.ModifiedTime
}
// SetID sets the value of ID.
func (s *Project) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *Project) SetName(val OptString) {
s.Name = val
}
// SetColor sets the value of Color.
func (s *Project) SetColor(val OptNilString) {
s.Color = val
}
// SetSortOrder sets the value of SortOrder.
func (s *Project) SetSortOrder(val OptNilInt64) {
s.SortOrder = val
}
// SetSortType sets the value of SortType.
func (s *Project) SetSortType(val OptNilString) {
s.SortType = val
}
// SetViewMode sets the value of ViewMode.
func (s *Project) SetViewMode(val OptNilString) {
s.ViewMode = val
}
// SetKind sets the value of Kind.
func (s *Project) SetKind(val OptNilString) {
s.Kind = val
}
// SetGroupId sets the value of GroupId.
func (s *Project) SetGroupId(val OptNilString) {
s.GroupId = val
}
// SetIsOwner sets the value of IsOwner.
func (s *Project) SetIsOwner(val OptNilBool) {
s.IsOwner = val
}
// SetClosed sets the value of Closed.
func (s *Project) SetClosed(val OptNilBool) {
s.Closed = val
}
// SetModifiedTime sets the value of ModifiedTime.
func (s *Project) SetModifiedTime(val OptNilString) {
s.ModifiedTime = val
}
// Ref: #/components/schemas/ProjectData
type ProjectData struct {
Project OptProject `json:"project"`
Tasks OptNilTaskArray `json:"tasks"`
Columns OptNilColumnArray `json:"columns"`
}
// GetProject returns the value of Project.
func (s *ProjectData) GetProject() OptProject {
return s.Project
}
// GetTasks returns the value of Tasks.
func (s *ProjectData) GetTasks() OptNilTaskArray {
return s.Tasks
}
// GetColumns returns the value of Columns.
func (s *ProjectData) GetColumns() OptNilColumnArray {
return s.Columns
}
// SetProject sets the value of Project.
func (s *ProjectData) SetProject(val OptProject) {
s.Project = val
}
// SetTasks sets the value of Tasks.
func (s *ProjectData) SetTasks(val OptNilTaskArray) {
s.Tasks = val
}
// SetColumns sets the value of Columns.
func (s *ProjectData) SetColumns(val OptNilColumnArray) {
s.Columns = val
}
// Ref: #/components/schemas/Task
type Task struct {
ID OptString `json:"id"`
ProjectId OptString `json:"projectId"`
Title OptString `json:"title"`
Content OptNilString `json:"content"`
Desc OptNilString `json:"desc"`
IsAllDay OptNilBool `json:"isAllDay"`
StartDate OptNilString `json:"startDate"`
DueDate OptNilString `json:"dueDate"`
TimeZone OptNilString `json:"timeZone"`
Reminders OptNilStringArray `json:"reminders"`
RepeatFlag OptNilString `json:"repeatFlag"`
Priority OptInt `json:"priority"`
Status OptInt `json:"status"`
SortOrder OptNilInt64 `json:"sortOrder"`
Items OptNilChecklistItemArray `json:"items"`
Tags OptNilStringArray `json:"tags"`
CompletedTime OptNilString `json:"completedTime"`
ModifiedTime OptNilString `json:"modifiedTime"`
CreatedTime OptNilString `json:"createdTime"`
Kind OptNilString `json:"kind"`
}
// GetID returns the value of ID.
func (s *Task) GetID() OptString {
return s.ID
}
// GetProjectId returns the value of ProjectId.
func (s *Task) GetProjectId() OptString {
return s.ProjectId
}
// GetTitle returns the value of Title.
func (s *Task) GetTitle() OptString {
return s.Title
}
// GetContent returns the value of Content.
func (s *Task) GetContent() OptNilString {
return s.Content
}
// GetDesc returns the value of Desc.
func (s *Task) GetDesc() OptNilString {
return s.Desc
}
// GetIsAllDay returns the value of IsAllDay.
func (s *Task) GetIsAllDay() OptNilBool {
return s.IsAllDay
}
// GetStartDate returns the value of StartDate.
func (s *Task) GetStartDate() OptNilString {
return s.StartDate
}
// GetDueDate returns the value of DueDate.
func (s *Task) GetDueDate() OptNilString {
return s.DueDate
}
// GetTimeZone returns the value of TimeZone.
func (s *Task) GetTimeZone() OptNilString {
return s.TimeZone
}
// GetReminders returns the value of Reminders.
func (s *Task) GetReminders() OptNilStringArray {
return s.Reminders
}
// GetRepeatFlag returns the value of RepeatFlag.
func (s *Task) GetRepeatFlag() OptNilString {
return s.RepeatFlag
}
// GetPriority returns the value of Priority.
func (s *Task) GetPriority() OptInt {
return s.Priority
}
// GetStatus returns the value of Status.
func (s *Task) GetStatus() OptInt {
return s.Status
}
// GetSortOrder returns the value of SortOrder.
func (s *Task) GetSortOrder() OptNilInt64 {
return s.SortOrder
}
// GetItems returns the value of Items.
func (s *Task) GetItems() OptNilChecklistItemArray {
return s.Items
}
// GetTags returns the value of Tags.
func (s *Task) GetTags() OptNilStringArray {
return s.Tags
}
// GetCompletedTime returns the value of CompletedTime.
func (s *Task) GetCompletedTime() OptNilString {
return s.CompletedTime
}
// GetModifiedTime returns the value of ModifiedTime.
func (s *Task) GetModifiedTime() OptNilString {
return s.ModifiedTime
}
// GetCreatedTime returns the value of CreatedTime.
func (s *Task) GetCreatedTime() OptNilString {
return s.CreatedTime
}
// GetKind returns the value of Kind.
func (s *Task) GetKind() OptNilString {
return s.Kind
}
// SetID sets the value of ID.
func (s *Task) SetID(val OptString) {
s.ID = val
}
// SetProjectId sets the value of ProjectId.
func (s *Task) SetProjectId(val OptString) {
s.ProjectId = val
}
// SetTitle sets the value of Title.
func (s *Task) SetTitle(val OptString) {
s.Title = val
}
// SetContent sets the value of Content.
func (s *Task) SetContent(val OptNilString) {
s.Content = val
}
// SetDesc sets the value of Desc.
func (s *Task) SetDesc(val OptNilString) {
s.Desc = val
}
// SetIsAllDay sets the value of IsAllDay.
func (s *Task) SetIsAllDay(val OptNilBool) {
s.IsAllDay = val
}
// SetStartDate sets the value of StartDate.
func (s *Task) SetStartDate(val OptNilString) {
s.StartDate = val
}
// SetDueDate sets the value of DueDate.
func (s *Task) SetDueDate(val OptNilString) {
s.DueDate = val
}
// SetTimeZone sets the value of TimeZone.
func (s *Task) SetTimeZone(val OptNilString) {
s.TimeZone = val
}
// SetReminders sets the value of Reminders.
func (s *Task) SetReminders(val OptNilStringArray) {
s.Reminders = val
}
// SetRepeatFlag sets the value of RepeatFlag.
func (s *Task) SetRepeatFlag(val OptNilString) {
s.RepeatFlag = val
}
// SetPriority sets the value of Priority.
func (s *Task) SetPriority(val OptInt) {
s.Priority = val
}
// SetStatus sets the value of Status.
func (s *Task) SetStatus(val OptInt) {
s.Status = val
}
// SetSortOrder sets the value of SortOrder.
func (s *Task) SetSortOrder(val OptNilInt64) {
s.SortOrder = val
}
// SetItems sets the value of Items.
func (s *Task) SetItems(val OptNilChecklistItemArray) {
s.Items = val
}
// SetTags sets the value of Tags.
func (s *Task) SetTags(val OptNilStringArray) {
s.Tags = val
}
// SetCompletedTime sets the value of CompletedTime.
func (s *Task) SetCompletedTime(val OptNilString) {
s.CompletedTime = val
}
// SetModifiedTime sets the value of ModifiedTime.
func (s *Task) SetModifiedTime(val OptNilString) {
s.ModifiedTime = val
}
// SetCreatedTime sets the value of CreatedTime.
func (s *Task) SetCreatedTime(val OptNilString) {
s.CreatedTime = val
}
// SetKind sets the value of Kind.
func (s *Task) SetKind(val OptNilString) {
s.Kind = val
}
// Ref: #/components/schemas/UpdateProjectReq
type UpdateProjectReq struct {
Name OptString `json:"name"`
Color OptString `json:"color"`
ViewMode OptString `json:"viewMode"`
Kind OptString `json:"kind"`
}
// GetName returns the value of Name.
func (s *UpdateProjectReq) GetName() OptString {
return s.Name
}
// GetColor returns the value of Color.
func (s *UpdateProjectReq) GetColor() OptString {
return s.Color
}
// GetViewMode returns the value of ViewMode.
func (s *UpdateProjectReq) GetViewMode() OptString {
return s.ViewMode
}
// GetKind returns the value of Kind.
func (s *UpdateProjectReq) GetKind() OptString {
return s.Kind
}
// SetName sets the value of Name.
func (s *UpdateProjectReq) SetName(val OptString) {
s.Name = val
}
// SetColor sets the value of Color.
func (s *UpdateProjectReq) SetColor(val OptString) {
s.Color = val
}
// SetViewMode sets the value of ViewMode.
func (s *UpdateProjectReq) SetViewMode(val OptString) {
s.ViewMode = val
}
// SetKind sets the value of Kind.
func (s *UpdateProjectReq) SetKind(val OptString) {
s.Kind = val
}
// Ref: #/components/schemas/UpdateTaskReq
type UpdateTaskReq struct {
ID string `json:"id"`
ProjectId string `json:"projectId"`
Title OptString `json:"title"`
Content OptString `json:"content"`
Desc OptString `json:"desc"`
IsAllDay OptBool `json:"isAllDay"`
StartDate OptString `json:"startDate"`
DueDate OptString `json:"dueDate"`
TimeZone OptString `json:"timeZone"`
Reminders []string `json:"reminders"`
RepeatFlag OptString `json:"repeatFlag"`
Priority OptInt `json:"priority"`
SortOrder OptInt64 `json:"sortOrder"`
Items []ChecklistItem `json:"items"`
}
// GetID returns the value of ID.
func (s *UpdateTaskReq) GetID() string {
return s.ID
}
// GetProjectId returns the value of ProjectId.
func (s *UpdateTaskReq) GetProjectId() string {
return s.ProjectId
}
// GetTitle returns the value of Title.
func (s *UpdateTaskReq) GetTitle() OptString {
return s.Title
}
// GetContent returns the value of Content.
func (s *UpdateTaskReq) GetContent() OptString {
return s.Content
}
// GetDesc returns the value of Desc.
func (s *UpdateTaskReq) GetDesc() OptString {
return s.Desc
}
// GetIsAllDay returns the value of IsAllDay.
func (s *UpdateTaskReq) GetIsAllDay() OptBool {
return s.IsAllDay
}
// GetStartDate returns the value of StartDate.
func (s *UpdateTaskReq) GetStartDate() OptString {
return s.StartDate
}
// GetDueDate returns the value of DueDate.
func (s *UpdateTaskReq) GetDueDate() OptString {
return s.DueDate
}
// GetTimeZone returns the value of TimeZone.
func (s *UpdateTaskReq) GetTimeZone() OptString {
return s.TimeZone
}
// GetReminders returns the value of Reminders.
func (s *UpdateTaskReq) GetReminders() []string {
return s.Reminders
}
// GetRepeatFlag returns the value of RepeatFlag.
func (s *UpdateTaskReq) GetRepeatFlag() OptString {
return s.RepeatFlag
}
// GetPriority returns the value of Priority.
func (s *UpdateTaskReq) GetPriority() OptInt {
return s.Priority
}
// GetSortOrder returns the value of SortOrder.
func (s *UpdateTaskReq) GetSortOrder() OptInt64 {
return s.SortOrder
}
// GetItems returns the value of Items.
func (s *UpdateTaskReq) GetItems() []ChecklistItem {
return s.Items
}
// SetID sets the value of ID.
func (s *UpdateTaskReq) SetID(val string) {
s.ID = val
}
// SetProjectId sets the value of ProjectId.
func (s *UpdateTaskReq) SetProjectId(val string) {
s.ProjectId = val
}
// SetTitle sets the value of Title.
func (s *UpdateTaskReq) SetTitle(val OptString) {
s.Title = val
}
// SetContent sets the value of Content.
func (s *UpdateTaskReq) SetContent(val OptString) {
s.Content = val
}
// SetDesc sets the value of Desc.
func (s *UpdateTaskReq) SetDesc(val OptString) {
s.Desc = val
}
// SetIsAllDay sets the value of IsAllDay.
func (s *UpdateTaskReq) SetIsAllDay(val OptBool) {
s.IsAllDay = val
}
// SetStartDate sets the value of StartDate.
func (s *UpdateTaskReq) SetStartDate(val OptString) {
s.StartDate = val
}
// SetDueDate sets the value of DueDate.
func (s *UpdateTaskReq) SetDueDate(val OptString) {
s.DueDate = val
}
// SetTimeZone sets the value of TimeZone.
func (s *UpdateTaskReq) SetTimeZone(val OptString) {
s.TimeZone = val
}
// SetReminders sets the value of Reminders.
func (s *UpdateTaskReq) SetReminders(val []string) {
s.Reminders = val
}
// SetRepeatFlag sets the value of RepeatFlag.
func (s *UpdateTaskReq) SetRepeatFlag(val OptString) {
s.RepeatFlag = val
}
// SetPriority sets the value of Priority.
func (s *UpdateTaskReq) SetPriority(val OptInt) {
s.Priority = val
}
// SetSortOrder sets the value of SortOrder.
func (s *UpdateTaskReq) SetSortOrder(val OptInt64) {
s.SortOrder = val
}
// SetItems sets the value of Items.
func (s *UpdateTaskReq) SetItems(val []ChecklistItem) {
s.Items = val
}