feat: mall api 添加mall统一前缀

This commit is contained in:
xingyu4j
2025-06-06 22:45:43 +08:00
parent dbb9a33fda
commit 1f598d7712
40 changed files with 281 additions and 255 deletions

View File

@@ -2,7 +2,7 @@ import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
export namespace CouponApi {
export namespace MallCouponApi {
/** 优惠券 */
export interface Coupon {
/** 优惠券编号 */
@@ -55,13 +55,13 @@ export function deleteCoupon(id: number) {
/** 获得优惠劵分页 */
export function getCouponPage(params: PageParam) {
return requestClient.get<PageResult<CouponApi.Coupon>>(
return requestClient.get<PageResult<MallCouponApi.Coupon>>(
'/promotion/coupon/page',
{ params },
);
}
/** 发送优惠券 */
export function sendCoupon(data: CouponApi.SendCoupon) {
export function sendCoupon(data: MallCouponApi.SendCoupon) {
return requestClient.post('/promotion/coupon/send', data);
}