|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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 }
|