package com.gxwebsoft.credit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.credit.entity.CreditCustomer;
import com.gxwebsoft.credit.param.CreditCustomerParam;

import java.util.List;

/**
 * 客户Service
 *
 * @author 科技小王子
 * @since 2025-12-21 21:20:58
 */
public interface CreditCustomerService extends IService<CreditCustomer> {

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

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

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

}
