package com.jeesharp.business.modules.pay.payalipayconfig.service;

import com.jeesharp.business.modules.pay.payalipayconfig.entity.PayAlipayConfig;
import com.jeesharp.business.modules.pay.payalipayconfig.vo.PayAlipayConfigQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

/**
 * 支付宝配置领域服务接口。
 *
 * @author jeesharp
 * @since 2026-05-25
 */
public interface PayAlipayConfigService extends BaseInterface<PayAlipayConfig, PayAlipayConfigQueryVO> {

    PayAlipayConfig findActive(String tenantId);

    PayAlipayConfig findByConfigCode(String configCode, String tenantId);

    PayAlipayConfig findByChannelConfigId(String channelConfigId);

    void disableOtherActiveExcept(String tenantId, String keepId);
}
