mirror of
https://github.com/samuelncui/yatm.git
synced 2025-12-23 06:15:22 +00:00
12 lines
269 B
Go
12 lines
269 B
Go
package apis
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/samuelncui/yatm/entity"
|
|
)
|
|
|
|
func (api *API) DeviceList(ctx context.Context, req *entity.DeviceListRequest) (*entity.DeviceListReply, error) {
|
|
return &entity.DeviceListReply{Devices: api.exe.ListAvailableDevices()}, nil
|
|
}
|