mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 05:02:05 +00:00
feat: initial contracts
This commit is contained in:
parent
58f95324f4
commit
6f0f0643fe
7 changed files with 127 additions and 0 deletions
17
contract/machines.go
Normal file
17
contract/machines.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package host
|
||||
|
||||
type CreateMachineRequest struct {
|
||||
MachineID MachineID `json:"machine_id"`
|
||||
}
|
||||
|
||||
type CreateMachineResponse struct {
|
||||
Machine Machine `json:"machine"`
|
||||
}
|
||||
|
||||
type GetMachineResponse struct {
|
||||
Machine Machine `json:"machine"`
|
||||
}
|
||||
|
||||
type ListMachinesResponse struct {
|
||||
Machines []Machine `json:"machines"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue