accountManage.ts 474 B

12345678910111213141516
  1. import { AccountManage } from "@/api/interface/system/accountManage";
  2. import { PORT1 } from "@/api/config/servicePort";
  3. import http from "@/api";
  4. /**
  5. * @name 账号管理模块
  6. */
  7. // 获取账户信息
  8. export const getAccountInfo = () => {
  9. return http.get<AccountManage.ResAccountInfo>(PORT1 + `/account-info`);
  10. };
  11. // 保存账户信息
  12. export const postAccountInfo = (params: AccountManage.ReqSaveAccount) => {
  13. return http.post(PORT1 + `/account-info`, params);
  14. };