summaryrefslogtreecommitdiff
path: root/UI source code/dns_mapping_ui-master/src/api/mnt/deploy.js
diff options
context:
space:
mode:
Diffstat (limited to 'UI source code/dns_mapping_ui-master/src/api/mnt/deploy.js')
-rw-r--r--UI source code/dns_mapping_ui-master/src/api/mnt/deploy.js77
1 files changed, 77 insertions, 0 deletions
diff --git a/UI source code/dns_mapping_ui-master/src/api/mnt/deploy.js b/UI source code/dns_mapping_ui-master/src/api/mnt/deploy.js
new file mode 100644
index 0000000..c1475ea
--- /dev/null
+++ b/UI source code/dns_mapping_ui-master/src/api/mnt/deploy.js
@@ -0,0 +1,77 @@
+import request from '@/utils/request'
+
+export function add(data) {
+ return request({
+ url: 'api/deploy',
+ method: 'post',
+ data
+ })
+}
+
+export function del(ids) {
+ return request({
+ url: 'api/deploy',
+ method: 'delete',
+ data: ids
+ })
+}
+
+export function edit(data) {
+ return request({
+ url: 'api/deploy',
+ method: 'put',
+ data
+ })
+}
+
+export function getApps() {
+ return request({
+ url: 'api/app',
+ method: 'get'
+ })
+}
+
+export function getServers() {
+ return request({
+ url: 'api/serverDeploy',
+ method: 'get'
+ })
+}
+
+/**
+ * 启动服务
+ * @param data 选中行
+ */
+export function startServer(data) {
+ return request({
+ url: 'api/deploy/startServer',
+ method: 'post',
+ data
+ })
+}
+
+/**
+ * 停止服务
+ * @param data 选中行
+ */
+export function stopServer(data) {
+ return request({
+ url: 'api/deploy/stopServer',
+ method: 'post',
+ data
+ })
+}
+
+/**
+ * 停止服务
+ * @param data 选中行
+ */
+export function serverStatus(data) {
+ return request({
+ url: 'api/deploy/serverStatus',
+ method: 'post',
+ data
+ })
+}
+
+export default { add, edit, del, stopServer, serverStatus, startServer, getServers, getApps }