You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
autoflow-web-console/src/components/service/management/ExternalAuthControllerServi...

24 lines
688 B

import { EdgePkgInfoVOModel } from "@/components/models/management/ExternalAuthController";
import { request } from "@/components/service/index";
export const ExternalAuthControllerService = {
signIn: (id: string, password: string) => {
return request.post("/api/external-auth/signin", { id, password });
},
add: (params: EdgePkgInfoVOModel, file: File | Blob) => {
const fd = new FormData();
fd.append("file", file);
return request.postWithConfig("/api/external-auth/register-with-file", fd, {
params,
});
},
search: (id: string, token: string) => {
return request.get("/api/external-auth/edge-search", {
id,
token,
});
},
};