feat:【antd】【member 会员】迁移 CouponSendForm 组件

This commit is contained in:
YunaiV
2025-10-07 16:17:21 +08:00
parent d88ba2ad4e
commit 4809b7847a
3 changed files with 152 additions and 6 deletions

View File

@@ -40,9 +40,9 @@ export namespace MallCouponApi {
}
/** 发送优惠券 */
export interface SendCoupon {
export interface CouponSendReqVO {
/** 优惠券编号 */
couponId: number;
templateId: number;
/** 用户编号数组 */
userIds: number[];
}
@@ -62,6 +62,6 @@ export function getCouponPage(params: PageParam) {
}
/** 发送优惠券 */
export function sendCoupon(data: MallCouponApi.SendCoupon) {
export function sendCoupon(data: MallCouponApi.CouponSendReqVO) {
return requestClient.post('/promotion/coupon/send', data);
}