| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package com.java110.boot.components;
- 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("deletePrivilegeGroup")
- public class DeletePrivilegeGroupComponent {
- @Autowired
- private IPrivilegeServiceSMO privilegeServiceSMOImpl;
- /**
- * 删除权限组
- *
- * @param pd
- * @return
- */
- public ResponseEntity<String> delete(IPageData pd) {
- ResponseEntity<String> responseEntity = null;
- try {
- responseEntity = privilegeServiceSMOImpl.deletePrivilegeGroup(pd);
- } catch (Exception e) {
- responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
- } finally {
- }
- return responseEntity;
- }
- public IPrivilegeServiceSMO getPrivilegeServiceSMOImpl() {
- return privilegeServiceSMOImpl;
- }
- public void setPrivilegeServiceSMOImpl(IPrivilegeServiceSMO privilegeServiceSMOImpl) {
- this.privilegeServiceSMOImpl = privilegeServiceSMOImpl;
- }
- }
|