All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.wizzer.app.cms.modules.services.CmsChannelService Maven / Gradle / Ivy

There is a newer version: 5.2.8-zookeeper
Show newest version
package cn.wizzer.app.cms.modules.services;

import cn.wizzer.framework.base.service.BaseService;
import cn.wizzer.app.cms.modules.models.Cms_channel;

import java.util.List;

public interface CmsChannelService extends BaseService {
    /**
     * 添加栏目
     *
     * @param channel
     * @param pid
     */
    void save(Cms_channel channel, String pid);

    /**
     * 级联删除栏目
     *
     * @param channel
     */
    void deleteAndChild(Cms_channel channel);

    /**
     * 从缓存中获取栏目数据
     *
     * @param id
     * @param code
     * @return
     */
    Cms_channel getChannel(String id, String code);

    /**
     * 根据编码判断栏目是否存在
     *
     * @param code
     * @return
     */
    boolean hasChannel(String code);

    /**
     * 从缓存中获取栏目列表
     *
     * @param parentId
     * @param parentCode
     * @return
     */
    List listChannel(String parentId, String parentCode);

    /**
     * 清空缓存
     */
    void clearCache();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy