Files
zsglpt/static/admin/assets/admin-DcqTfJCB.js
2026-05-27 22:32:42 +08:00

2 lines
919 B
JavaScript

import{a as t}from"./index-zJym-Cg7.js";async function c(n){const{data:a}=await t.put("/admin/username",{new_username:n});return a}async function d(n={}){const a=String(n.currentPassword||""),s=String(n.newPassword||""),{data:i}=await t.put("/admin/password",{current_password:a,new_password:s});return i}async function r(){const{data:n}=await t.post("/logout");return n}async function e(){const{data:n}=await t.get("/admin/social-bindings");return n}async function u(n={}){const{data:a}=await t.post("/admin/social-login-url",n);return a}async function l(n={}){const{data:a}=await t.post("/admin/social-poll",n);return a}async function m(n,a={}){const{data:s}=await t.post(`/admin/social-bindings/${encodeURIComponent(n)}/callback`,a);return s}async function w(n){const{data:a}=await t.delete(`/admin/social-bindings/${encodeURIComponent(n)}`);return a}export{d as a,w as b,u as c,m as d,e as f,r as l,l as p,c as u};