weaver-hrm-organization/src/com/engine/organization/wrapper/GroupWrapper.java

51 lines
1.1 KiB
Java
Raw Normal View History

2022-05-16 11:33:19 +08:00
package com.engine.organization.wrapper;
import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service;
2022-05-16 14:29:11 +08:00
import com.engine.organization.service.GroupService;
import com.engine.organization.service.impl.GroupServiceImpl;
2022-05-16 11:33:19 +08:00
import weaver.hrm.User;
import java.util.Map;
/**
* @description: TODO
* @author:dxfeng
* @createTime: 2022/05/16
* @version: 1.0
*/
2022-05-16 14:29:11 +08:00
public class GroupWrapper extends Service {
private GroupService getGroupService(User user) {
return ServiceUtil.getService(GroupServiceImpl.class, user);
2022-05-16 11:33:19 +08:00
}
/**
* 获取新增表单
*
* @param params
* @return
*/
2022-05-16 14:29:11 +08:00
public Map<String, Object> getGroupFormField(Map<String, Object> params) {
return getGroupService(user).getGroupFormField(params);
2022-05-16 11:33:19 +08:00
}
/**
* 获取列表页面按钮信息
*
* @return
*/
public Map<String, Object> getHasRight() {
2022-05-16 14:29:11 +08:00
return getGroupService(user).getHasRight();
2022-05-16 11:33:19 +08:00
}
/**
* 获取列表tabs
*
* @return
*/
public Map<String, Object> getTabInfo() {
2022-05-16 14:29:11 +08:00
return getGroupService(user).getTabInfo();
2022-05-16 11:33:19 +08:00
}
}