package com.ruoyi.web.modules.content.service;

import com.ruoyi.web.modules.content.domain.BizMallServiceAgreement;
import com.ruoyi.web.modules.content.vo.MallServiceAgreementAppVO;
import com.ruoyi.web.modules.content.vo.MallServiceAgreementConfigVO;
import com.ruoyi.web.modules.content.vo.MallServiceAgreementStatusVO;

/**
 * 商城服务协议服务
 */
public interface IMallServiceAgreementService
{
    MallServiceAgreementConfigVO getConfig();

    void saveConfig(BizMallServiceAgreement row, String operator);

    MallServiceAgreementAppVO getForApp();

    MallServiceAgreementStatusVO getStatus();

    boolean isEnabled();

    boolean isRegistrationOpen();

    boolean isAgreementRequiredOnLogin();

    void assertAcceptedForRegister(boolean agreementAccepted);

    void assertAcceptedForLogin(boolean agreementAccepted);

    String buildCheckboxLabel(String agreementTitle, String versionLabel);
}
