package com.zsElectric.boot.business.service;

import com.zsElectric.boot.business.model.entity.DiscountsActivity;
import com.zsElectric.boot.business.model.form.DiscountsActivityForm;
import com.zsElectric.boot.business.model.query.DiscountsActivityQuery;
import com.zsElectric.boot.business.model.vo.DiscountsActivityVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 优惠活动服务类
 *
 * @author zsElectric
 * @since 2025-12-20 16:16
 */
public interface DiscountsActivityService extends IService<DiscountsActivity> {

    /**
     * 优惠活动分页列表
     *
     * @return {@link IPage<DiscountsActivityVO>} 优惠活动分页列表
     */
    IPage<DiscountsActivityVO> getDiscountsActivityPage(DiscountsActivityQuery queryParams);

    /**
     * 获取优惠活动表单数据
     *
     * @param id 优惠活动ID
     * @return 优惠活动表单数据
     */
    DiscountsActivityForm getDiscountsActivityFormData(Long id);

    /**
     * 新增优惠活动
     *
     * @param formData 优惠活动表单对象
     * @return 是否新增成功
     */
    boolean saveDiscountsActivity(DiscountsActivityForm formData);

    /**
     * 修改优惠活动
     *
     * @param id       优惠活动ID
     * @param formData 优惠活动表单对象
     * @return 是否修改成功
     */
    boolean updateDiscountsActivity(Long id, DiscountsActivityForm formData);

    /**
     * 删除优惠活动
     *
     * @param ids 优惠活动ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteDiscountsActivitys(String ids);

}
