mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-02 00:55:27 +08:00
15 lines
622 B
TypeScript
15 lines
622 B
TypeScript
import Api from '@/common/Api';
|
|
|
|
export const mongoApi = {
|
|
mongoList: Api.newGet('/mongos'),
|
|
saveMongo: Api.newPost('/mongos'),
|
|
deleteMongo: Api.newDelete('/mongos/{id}'),
|
|
databases: Api.newGet('/mongos/{id}/databases'),
|
|
collections: Api.newGet('/mongos/{id}/collections'),
|
|
runCommand: Api.newPost('/mongos/{id}/run-command'),
|
|
findCommand: Api.newPost('/mongos/{id}/command/find'),
|
|
updateByIdCommand: Api.newPost('/mongos/{id}/command/update-by-id'),
|
|
deleteByIdCommand: Api.newPost('/mongos/{id}/command/delete-by-id'),
|
|
insertCommand: Api.newPost('/mongos/{id}/command/insert'),
|
|
};
|