| | |
| | | } |
| | | |
| | | /** |
| | | * 获取当前面板绑定的设备列表 |
| | | * 设定当前设备 |
| | | */ |
| | | export function apiSetCurrentDevice(data: SetCurrentDeviceParams) { |
| | | return request<BaseResponse<Devices>>({ |
| | | return request<BaseResponse>({ |
| | | url: `/v1/device/setCurrentDeviceId`, |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | |
| | | export interface SetCurrentDeviceConfigParams { |
| | | needSetProcessParams: boolean |
| | | } |
| | | |
| | | /** |
| | | * 设定当前设备配置 |
| | | */ |
| | | export function apiSetCurrentDeviceConfig(data: SetCurrentDeviceConfigParams) { |
| | | return request<BaseResponse>({ |
| | | url: `/v1/device/config`, |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | |
| | | export interface CraftModelListParams { |
| | | procedureId: number |
| | | page: number |