- Created SQL script to set up database tables for projects and technologies. - Added Docker Compose configuration for application and MySQL service. - Implemented API endpoints for CRUD operations on technologies. - Defined data types for projects and technologies. - Established routing for API endpoints.
22 lines
462 B
Go
22 lines
462 B
Go
package types
|
|
|
|
type TechnologieShort struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
type TechnologieCreate struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type TechnologieFull struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type Technologies struct {
|
|
Technologies []TechnologieShort `json:"technologies"`
|
|
Count int `json:"count"`
|
|
}
|