Newer
Older
huludao / src / main / java / com / newfiber / api / pc / service / SysButtonService.java
package com.newfiber.api.pc.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.newfiber.api.pc.model.entity.SysButtons;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface SysButtonService {

	
	
	//查看所有按钮信息
	public Page<Map<String, String>> ButtonList(String sort, String order,
															   int pageNo,
															   int pageSize,
															   String fuzzyQuery)throws Exception;


	//修改前查看按钮信息
	public HashMap<String, String> GetButton(Long Serial) throws Exception;



	 //添加按钮
	public String addButton(

            String Button_No,
            String Button_Name,
            String Button_Style,
            String Button_Event,
            int Button_Grade,
            String Remark,
            int OrderSort

    ) throws Exception;

	// 修改按钮信息
	public int updateButton(
            Long Serial,
            String Button_No, // '按钮编号',
            String Button_Name, // '按钮名称'
            String Button_Style, // '按钮编号',
            String Button_Event, // '按钮编号',
            int Button_Grade, // '按钮级别',
            String Remark,//
            int OrderSort//'1代表工具栏按钮,2代表页面按钮',

    ) throws Exception;

	       // 删除按钮
			public void deleteButton(String Serial)throws Exception;
     //按钮权限控制
	List<SysButtons> GetButtonAuth(String User_No);


	//查看已分配菜单按钮
		public Page<Map<String, String>> MenuButtonList(String sort, String order,
                                     int pageNo,
                                     int pageSize,
                                     String Menu_No
        )throws Exception;
		//查看未分配菜单按钮
		public Page<Map<String, String>> MenuButtonNotList(String sort, String order,
                                        int pageNo,
                                        int pageSize,
                                        String Menu_No)throws Exception;
		//添加菜单按钮
		public void addMenuButton(String Menu_No, String Button_No);
		//删除菜单按钮
		public void deleteMenuButton(List<String> list, String Menu_No);

	    //根据菜单编号查询按钮信息
		public Page<Map<String, String>> GetButtonlistAuth(String Menu_No);

		//根据菜单编号和用户获取用户有哪些按钮的权限


		Page<Map<String, String>>  GetButtonAuth(String Menu_No, String User_No);
		
		
			
}