18 lines
558 B
TypeScript
18 lines
558 B
TypeScript
import { baseRestService } from "src/_base/baseRestService";
|
|
import { toolingActions } from "../store/tooling.store";
|
|
import { store, AppModel } from "../store";
|
|
|
|
|
|
export class ToolingService extends baseRestService {
|
|
|
|
async GetToolTableConfiguration() {
|
|
let result = await this.Get<server.ToolTableInfoModel>("api/tool_table/configuration");
|
|
toolingActions.updateMagazine(store, result.magazines)
|
|
}
|
|
|
|
async GetTools(){
|
|
let result = await this.Get<server.Tool[]>("api/tool_table/tools");
|
|
toolingActions.updateTools(store, result);
|
|
}
|
|
}
|