init
This commit is contained in:
23
internal/model/project/project.go
Normal file
23
internal/model/project/project.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user