UNPKG

@lcap/asl

Version:

NetEase Application Specific Language

77 lines 2.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const preprocess_1 = require("../common/preprocess"); exports.default = { loadList: { url: { path: '/proxy/graph/api/v1/graph/structure/list', method: 'get', }, config: { postprocess: (result) => { result.forEach((item) => { Object.assign(item, item.definition); delete item.definition; preprocess_1.postServiceType(item); }); return result; }, }, }, loadDetail: { url: { path: '/proxy/graph/api/v1/graph/structure', method: 'get', }, config: { preprocess: preprocess_1.createPreServiceType('body'), postprocess: (result) => { preprocess_1.postServiceType(result); return result; }, }, }, create: { url: { path: '/proxy/graph/api/v1/graph/structure', method: 'post', }, config: { preprocess: (info) => preprocess_1.createPreServiceType('body')(info), }, }, update: { url: { path: '/proxy/graph/api/v1/graph/structure', method: 'put', }, config: { preprocess: (info) => preprocess_1.createPreServiceType('body')(info), }, }, delete: { url: { path: '/proxy/graph/api/v1/graph/structure', method: 'delete', }, }, addProperty: { url: { path: '/proxy/graph/api/v1/graph/structure/normal/property', method: 'post', }, }, updateProperty: { url: { path: '/proxy/graph/api/v1/graph/structure/normal/property', method: 'post', }, }, deleteProperty: { url: { path: '/proxy/graph/api/v1/graph/structure/normal/property', method: 'delete', }, }, }; //# sourceMappingURL=structure.js.map