@@ -8,3 +8,36 @@ export function getTreeDemoData(parent) {
params: parent
})
}
+
+// 删除接口
+export function deleteTreeDemoData(id) {
+ return request({
+ url: '/tree/',
+ method: 'delete',
+ params: id
+ })
+}
+/**
+ * 更新接口
+ * 参数要有id和name
+ */
+export function putTreeDemoData(data) {
+ method: 'put',
+ data
+ * 新增接口
+ * 参数要有一个id和name
+export function postTreeDemoData(data) {
+ method: 'post',