mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(m6): add CRUD dialogs for environments and product lines
This commit is contained in:
@@ -274,6 +274,18 @@ export function getIntegrationEnvironment(id) {
|
||||
return axios.get(`/api/v1/integration/environments/${id}`);
|
||||
}
|
||||
|
||||
export function createIntegrationEnvironment(body) {
|
||||
return axios.post("/api/v1/integration/environments", body);
|
||||
}
|
||||
|
||||
export function updateIntegrationEnvironment(id, body) {
|
||||
return axios.put(`/api/v1/integration/environments/${id}`, body);
|
||||
}
|
||||
|
||||
export function deleteIntegrationEnvironment(id) {
|
||||
return axios.delete(`/api/v1/integration/environments/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {{ page?: number, size?: number }} params
|
||||
*/
|
||||
@@ -288,6 +300,18 @@ export function getProductLine(id) {
|
||||
return axios.get(`/api/v1/integration/product-lines/${id}`);
|
||||
}
|
||||
|
||||
export function createProductLine(body) {
|
||||
return axios.post("/api/v1/integration/product-lines", body);
|
||||
}
|
||||
|
||||
export function updateProductLine(id, body) {
|
||||
return axios.put(`/api/v1/integration/product-lines/${id}`, body);
|
||||
}
|
||||
|
||||
export function deleteProductLine(id) {
|
||||
return axios.delete(`/api/v1/integration/product-lines/${id}`);
|
||||
}
|
||||
|
||||
// —— M7 设备管理 ————————————————————————————
|
||||
export function listDevices(params) {
|
||||
return axios.get('/api/v1/devices', { params });
|
||||
|
||||
Reference in New Issue
Block a user