mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 07:50:25 +08:00
14 lines
693 B
TypeScript
14 lines
693 B
TypeScript
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'),
|
|
} |