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

com.haoxuer.discover.user.data.service.MenuService Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.user.data.service;

import com.haoxuer.discover.data.page.Filter;
import com.haoxuer.discover.data.page.Order;
import com.haoxuer.discover.data.page.Page;
import com.haoxuer.discover.data.page.Pageable;
import com.haoxuer.discover.user.data.entity.Menu;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

/**
 * Created by imake on 2017年07月21日14:37:30.
 */
public interface MenuService {
  
  Menu findById(Integer id);

  @CacheEvict(value = "menuCache", allEntries = true)
  Menu save(Menu bean);

  @CacheEvict(value = "menuCache", allEntries = true)
  Menu update(Menu bean);

  @CacheEvict(value = "menuCache", allEntries = true)
  Menu deleteById(Integer id);

  @CacheEvict(value = "menuCache", allEntries = true)
  Menu[] deleteByIds(Integer[] ids);
  
  
  Page page(Pageable pageable);
  
  Page page(Pageable pageable, Object search);
  
  
  List findByTops(Integer pid);
  
  List list(int first, Integer size, List filters, List orders);
  
  List childs(Integer id);
  
  List findChildMenu(Integer id);
  
  List findChild(Integer id);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy