import request from "../../common/request"
import { FLOW_PATH as prefix } from "../AppPath";

export default {

	getSignature: function (urlData) {
		return request({
			url: prefix + "/app/getSignature",
			method: "get",
			params: {url:urlData  },
		});
	},

	treeData: function (extId) {
		return request({
			url: prefix + "/extension/actCategory/treeData",
			method: "get",
			params: { extId: extId },
		});
	},

	save: function (inputForm) {
		return request({
			url: prefix + "/extension/actCategory/save",
			method: "post",
			data: inputForm,
		});
	},

	drag: function (inputForm) {
		return request({
			url: prefix + "/extension/actCategory/drag",
			method: "post",
			data: inputForm,
		});
	},

	delete: function (ids) {
		return request({
			url: prefix + "/extension/actCategory/delete",
			method: "delete",
			params: { ids: ids },
		});
	},

	queryById: function (id) {
		return request({
			url: prefix + "/extension/actCategory/queryById",
			method: "get",
			params: { id: id },
		});
	},
};
