package com.zsElectric.boot.business.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsElectric.boot.business.model.entity.Coupon;
import com.zsElectric.boot.business.model.form.CouponForm;

/**
 * 优惠劵对象转换器
 *
 * @author zsElectric
 * @since 2025-12-19 09:58
 */
@Mapper(componentModel = "spring")
public interface CouponConverter{

    CouponForm toForm(Coupon entity);

    Coupon toEntity(CouponForm formData);
}