package com.java110.boot.components.privilege; import com.java110.boot.smo.IPrivilegeServiceSMO; import com.java110.core.context.IPageData; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Component; /** * 权限组 删除权限 */ @Component("deletePrivilege") public class DeletePrivilegeComponent { @Autowired private IPrivilegeServiceSMO privilegeServiceSMOImpl; public ResponseEntity delete(IPageData pd) { ResponseEntity responseEntity = null; try { responseEntity = privilegeServiceSMOImpl.deletePrivilegeFromPrivilegeGroup(pd); } catch (Exception e) { responseEntity = new ResponseEntity(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); } finally { } return responseEntity; } public IPrivilegeServiceSMO getPrivilegeServiceSMOImpl() { return privilegeServiceSMOImpl; } public void setPrivilegeServiceSMOImpl(IPrivilegeServiceSMO privilegeServiceSMOImpl) { this.privilegeServiceSMOImpl = privilegeServiceSMOImpl; } }