@@ -32,7 +32,6 @@ func (d *Database) CreateClient(client *models.Client) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetClientByID récupère un client par son ID
|
|
||||||
func (d *Database) GetClientByID(id int) (*models.Client, error) {
|
func (d *Database) GetClientByID(id int) (*models.Client, error) {
|
||||||
var row struct {
|
var row struct {
|
||||||
ID int `gorm:"column:id"`
|
ID int `gorm:"column:id"`
|
||||||
|
|||||||
Reference in New Issue
Block a user