DAS_2024_1/bazunov_andrew_lab_3/TaskApp/models/models.go

25 lines
454 B
Go
Raw Permalink Normal View History

2024-10-26 14:46:33 +04:00
package models
type Person struct {
Id int `json:"id"`
Name string `json:"name"`
Tasks []Task `json:"tasks"`
}
type PersonCreate struct {
Name string `json:"name"`
}
type Task struct {
Id int `json:"id"`
PersonId int `json:"person_id"`
Name string `json:"name"`
Date string `json:"date"`
}
type TaskCreate struct {
PersonId int `json:"person_id"`
Name string `json:"name"`
Date string `json:"date"`
}