package com.zsElectric.boot.business.service;

import com.zsElectric.boot.business.model.entity.UserExchangeIntegralRule;
import com.zsElectric.boot.business.model.form.UserExchangeIntegralRuleForm;
import com.zsElectric.boot.business.model.query.UserExchangeIntegralRuleQuery;
import com.zsElectric.boot.business.model.vo.UserExchangeIntegralRuleVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 积分兑换规则服务类
 *
 * @author zsElectric
 * @since 2025-12-12 10:07
 */
public interface UserExchangeIntegralRuleService extends IService<UserExchangeIntegralRule> {

    /**
     *积分兑换规则分页列表
     *
     * @return {@link IPage<UserExchangeIntegralRuleVO>} 积分兑换规则分页列表
     */
    IPage<UserExchangeIntegralRuleVO> getUserExchangeIntegralRulePage(UserExchangeIntegralRuleQuery queryParams);

    /**
     * 获取积分兑换规则表单数据
     *
     * @param id 积分兑换规则ID
     * @return 积分兑换规则表单数据
     */
     UserExchangeIntegralRuleForm getUserExchangeIntegralRuleFormData(Long id);

    /**
     * 新增积分兑换规则
     *
     * @param formData 积分兑换规则表单对象
     * @return 是否新增成功
     */
    boolean saveUserExchangeIntegralRule(UserExchangeIntegralRuleForm formData);

    /**
     * 修改积分兑换规则
     *
     * @param id   积分兑换规则ID
     * @param formData 积分兑换规则表单对象
     * @return 是否修改成功
     */
    boolean updateUserExchangeIntegralRule(Long id, UserExchangeIntegralRuleForm formData);

    /**
     * 删除积分兑换规则
     *
     * @param ids 积分兑换规则ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteUserExchangeIntegralRules(String ids);

    boolean editStatus(Long id);
}
