package com.lightinit.hsdataplatform.service.admin;

import com.lightinit.hsdataplatform.entity.Menu;
import com.lightinit.hsdataplatform.entity.ModuleAction;
import com.lightinit.hsdataplatform.model.ResultState;
import com.lightinit.hsdataplatform.model.admin.ModuleActionListItemModel;
import com.lightinit.hsdataplatform.model.admin.ModuleDataModel;
import com.lightinit.hsdataplatform.model.admin.TreeModel;

import java.util.List;

/**
 * @author WangYao
 * @date 2018/6/30 14:56
 * @description 模块功能管理接口
 */
public interface IModuleMgrService {

    List<ModuleActionListItemModel> getModuleActionList();
    List<TreeModel> queryTreeData();
    List<Menu> getAllMenuList();
    List<ModuleAction> getAllActionList();
    ResultState addOrEdit(ModuleDataModel inputModel);
    ResultState<Menu> addOrEditModule(ModuleDataModel inputModel);
    ResultState<ModuleAction> addOrEditAction(ModuleDataModel inputModel);
    ResultState<Long> deleteModule(long id);
    ResultState<Long> deleteAction(long id);
}
