package com.softwarebr.nunu.service.go;

import com.softwarebr.nunu.entity.go.PolicyLabel;
import com.brframework.commondb.core.EntityService;

import java.util.List;

/**
 * @date 2020-02-19 16:28:24
 * @author lilin
 */

public interface PolicyLabelService extends EntityService<PolicyLabel, Long, Object> {

    /**
     * 删除政策与标签关系
     * @param policyId
     */
    void removeByPolicyId(Long policyId);

    /**
     * 查询政策分类标签
     * @param policyId
     * @return
     */
    List<PolicyLabel> getPolicyLabel(Long policyId);

    /**
     * 通过二级标签筛选
     * @param secondLabelIds 二级标签id
     * @return
     */
    List<PolicyLabel> getByLabels(List<Long> secondLabelIds);


}