24 lines
516 B
Go
24 lines
516 B
Go
package project
|
|
|
|
type Project struct {
|
|
ID uint32 `json:"id"`
|
|
Name string `json:"name"`
|
|
Description *string `json:"description"`
|
|
Key string `json:"key"`
|
|
}
|
|
|
|
type CreateProjectDTO struct {
|
|
Name string `json:"name" validate:"required"`
|
|
Description string `json:"description"`
|
|
Key string `json:"key"`
|
|
}
|
|
|
|
type UpdateProjectDTO struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type FilterDTO struct {
|
|
UserID *uint32 `json:"user_id"`
|
|
}
|