package com.cm.common.plugin.oauth.service.menu;

import com.alibaba.fastjson.JSONArray;
import com.cm.common.exception.AccessTokenException;
import com.cm.common.exception.SearchException;

import java.util.Map;

/**
 * @ClassName: IMenuService
 * @Description: 菜单
 * @Author: WangGeng
 * @Date: 2019/4/22 2:07 PM
 * @Version: 1.0
 **/
public interface IMenuService {

    /**
     * 通过token获取菜单列表
     *
     * @param token
     * @param params
     * @return
     */
    JSONArray listMenu(Map<String, Object> params) throws AccessTokenException, SearchException;

    /**
     * 通过token获取我的菜单
     * @return
     * @throws AccessTokenException
     * @throws SearchException
     */
    JSONArray listMenuOfMine() throws AccessTokenException, SearchException;
}
