JewelryMall/miniprogram/unpackage/dist/build/mp-weixin/api/user.js
2026-03-03 01:40:42 +08:00

2 lines
341 B
JavaScript

"use strict";const e=require("../utils/request.js");exports.addAddress=s=>e.post("/api/user/addresses",s),exports.deleteAddress=s=>e.del(`/api/user/addresses/${s}`),exports.getAddressList=()=>e.get("/api/user/addresses"),exports.getUserProfile=()=>e.get("/api/user/profile"),exports.updateAddress=(s,r)=>e.put(`/api/user/addresses/${s}`,r);