- 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.
32 lines
954 B
Go
32 lines
954 B
Go
package types
|
|
|
|
type ProjetShort struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
ShortDescriptionFr string `json:"shortdescriptionfr"`
|
|
Technologies []string `json:"technologies"`
|
|
|
|
}
|
|
|
|
type Projetcreate struct {
|
|
Name string `json:"name"`
|
|
ShortDescription string `json:"shortdescriptionfr"`
|
|
}
|
|
|
|
type ProjetFull struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
ShortDescriptionFr string `json:"shortdescriptionfr"`
|
|
LongDescriptionFr string `json:"longdescriptionfr"`
|
|
ShortDescriptionEn string `json:"shortdescriptionen"`
|
|
LongDescriptionEn string `json:"longdescriptionen"`
|
|
LinkGithub string `json:"linkGithub"`
|
|
LinkWeb string `json:"linkWeb"`
|
|
Technologies []string `json:"technologies"`
|
|
}
|
|
|
|
type Projets struct {
|
|
Projets []ProjetShort `json:"projets"`
|
|
Count int `json:"count"`
|
|
}
|