package com.njcn.service.configuration;

import com.njcn.pojo.configuration.SysSet;
import com.njcn.pojo.data.FunctionPloyEntity;
import com.njcn.pojo.data.MenuEntity;
import com.njcn.pojo.data.TimerManage;

import java.util.Date;
import java.util.List;

public interface SysService {
    List<List> getSysList();

    int update(SysSet set);

    List<MenuEntity> listMenu();

    List<MenuEntity> parentMenuList();

    List<MenuEntity> menuTypeList();

    void insertData(MenuEntity menuEntity, String userIndex, String sysType);

    void updateData(MenuEntity menuEntity, String userIndex);

    void deleteMenu(String id, String userIndex, Date time);

    List<FunctionPloyEntity> menuPloyList(String sysType);

    List<MenuEntity> roleList();

    void insertRoleMenuData(String uuid, String roleId, String name, List<String> list, String des, Date date, String userIndex, String sysType);

    void updateRoleMenuData(String id, String roleId, String name, List<String> list, String des, Date date, String userIndex);

    void deleteFunctionRoleData(String id, Date date, String userIndex, String roleId);

    List<String> roleStateList(String sysType);

    List<String> getRoleFunction(String roleId, String id);

    List<MenuEntity> getListMenu(List<String> list, String sysType);

    List<TimerManage> getTimerManage();

    Integer setTimerState(String guid, Integer state);

    String getTimerManageByGuid(String guid);
}
