oktopus/backend/services/controller/internal/db/device.go
Leandro Antônio Farias Machado 45364aec39 feat:save devices at database
2023-04-13 09:54:48 -03:00

22 lines
306 B
Go

package db
type Device struct {
Model string
Customer string
Vendor string
Version string
}
func (d *Database) CreateDevice(device Device) error {
_, err := d.devices.InsertOne(d.ctx, device, nil)
return err
}
func (d *Database) RetrieveDevice() {
}
func (d *Database) DeleteDevice() {
}