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

39 lines
1.0 KiB
Java
Raw Normal View History

2022-11-01 17:53:31 +08:00
package com.engine.organization.wrapper;
2022-11-02 17:44:52 +08:00
import com.engine.common.util.ServiceUtil;
import com.engine.organization.service.CardAccessService;
import com.engine.organization.service.impl.CardAccessServiceImpl;
2022-11-01 17:53:31 +08:00
import com.engine.organization.util.OrganizationWrapper;
2022-11-02 17:44:52 +08:00
import weaver.hrm.User;
import java.util.Map;
2022-11-01 17:53:31 +08:00
/**
* @Author weaver_cl
* @Description:
* @Date 2022/11/1
* @Version V1.0
**/
public class CardAccessWrapper extends OrganizationWrapper {
2022-11-02 17:44:52 +08:00
public CardAccessService getCardAccessService(User user) {
2022-11-11 09:09:53 +08:00
return ServiceUtil.getService(CardAccessServiceImpl.class, user);
2022-11-02 17:44:52 +08:00
}
public Map<String, Object> listPage() {
return getCardAccessService(user).tablePage();
}
public Map<String, Object> hasRight() {
return getCardAccessService(user).hasRight();
}
public int save(Map<String, Object> params) {
return getCardAccessService(user).save(params);
}
2022-11-11 09:09:53 +08:00
2022-11-11 13:59:45 +08:00
public Map<String, Object> getCardButtonTable() {
return getCardAccessService(user).getCardButtonTable();
2022-11-11 09:09:53 +08:00
}
2022-11-01 17:53:31 +08:00
}