package com.gxwebsoft.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.shop.entity.ShopSurchargeConfig;
import com.gxwebsoft.shop.param.ShopSurchargeConfigParam;

import java.util.List;

/**
 * 步梯费用设置Service
 *
 * @author xm
 * @since 2026-04-28 16:30:00
 */
public interface ShopSurchargeConfigService extends IService<ShopSurchargeConfig> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<ShopSurchargeConfig>
     */
    PageResult<ShopSurchargeConfig> pageRel(ShopSurchargeConfigParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<ShopSurchargeConfig>
     */
    List<ShopSurchargeConfig> listRel(ShopSurchargeConfigParam param);

    /**
     * 根据id查询
     *
     * @param id 主键ID
     * @return ShopSurchargeConfig
     */
    ShopSurchargeConfig getByIdRel(Integer id);

    /**
     * 通过类型获取数据
     * @param type
     * @return
     */
    ShopSurchargeConfig getInfoByType(Integer type);

    /**
     * 保存信息
     * @param shopSurchargeConfig
     * @return
     */
    Integer saveInfo(ShopSurchargeConfig shopSurchargeConfig);

    /**
     * 修改信息
     * @param shopSurchargeConfig
     * @return
     */
    Boolean updateInfo(ShopSurchargeConfig shopSurchargeConfig);

    /**
     * 更新数据状态
     * @param id
     * @return
     */
    Boolean updateStatus(Integer id);

}
