mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: 新增mongo管理与数据操作
This commit is contained in:
14
mayfly_go_web/src/views/ops/mongo/api.ts
Normal file
14
mayfly_go_web/src/views/ops/mongo/api.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import Api from '@/common/Api';
|
||||
|
||||
export const mongoApi = {
|
||||
mongoList : Api.create("/mongos", 'get'),
|
||||
saveMongo : Api.create("/mongos", 'post'),
|
||||
deleteMongo : Api.create("/mongos/{id}", 'delete'),
|
||||
databases: Api.create("/mongos/{id}/databases", 'get'),
|
||||
collections: Api.create("/mongos/{id}/collections", 'get'),
|
||||
runCommand: Api.create("/mongos/{id}/run-command", 'post'),
|
||||
findCommand: Api.create("/mongos/{id}/command/find", 'post'),
|
||||
updateByIdCommand: Api.create("/mongos/{id}/command/update-by-id", 'post'),
|
||||
deleteByIdCommand: Api.create("/mongos/{id}/command/delete-by-id", 'post'),
|
||||
insertCommand: Api.create("/mongos/{id}/command/insert", 'post'),
|
||||
}
|
||||
Reference in New Issue
Block a user