add: 更新优惠券相关接口

This commit is contained in:
YeMingfei666 2025-09-15 10:03:16 +08:00
parent 2dbc4620f2
commit 9d3ae6272d
1 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import request from "@/utils/request";
import { Market_BaseUrl } from "@/api/config";
import { get } from "lodash";
const baseURL = Market_BaseUrl + "/admin/coupon";
const API = {
getList(params: any) {
@ -9,6 +10,14 @@ const API = {
params
});
},
//优惠券列表/已领取详情
getDetail(params: any) {
return request<any>({
url: `${baseURL}/record`,
method: "get",
params
});
},
}
export default API;