import { LoginRequest, LoginResponse, UpdatePwdRequest } from "@/types";
import { requestByGet, requestByPost } from "@dage/service";

export const login = (data: LoginRequest) => {
  return requestByPost<LoginResponse>("/api/admin/login", data);
};

export const logoutApi = () => {
  return requestByGet("/api/admin/logout");
};

export const updatePwd = (data: UpdatePwdRequest) => {
  return requestByPost("/api/sys/user/updatePwd", data);
};

export * from "./log";
export * from "./user";
