| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package com.java110.web.components;
- import com.java110.core.context.IPageData;
- import com.java110.web.smo.ILoginServiceSMO;
- import com.java110.web.smo.sys.ISysServiceSMO;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.http.*;
- import org.springframework.stereotype.Component;
- @Component("login")
- public class LoginComponent {
- @Autowired
- private ILoginServiceSMO loginServiceSMOImpl;
- @Autowired
- private ISysServiceSMO sysServiceSMOImpl;
- /**
- * 用户登录
- *
- * @param pd
- * @return
- */
- public ResponseEntity<String> doLogin(IPageData pd) {
- ResponseEntity<String> responseEntity = null;
- try {
- responseEntity = loginServiceSMOImpl.doLogin(pd);
- } catch (Exception e) {
- responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
- } finally {
- return responseEntity;
- }
- }
- public ResponseEntity<String> getSysInfo(IPageData pd) {
- return sysServiceSMOImpl.getSysInfo(pd);
- }
- public ILoginServiceSMO getLoginServiceSMOImpl() {
- return loginServiceSMOImpl;
- }
- public void setLoginServiceSMOImpl(ILoginServiceSMO loginServiceSMOImpl) {
- this.loginServiceSMOImpl = loginServiceSMOImpl;
- }
- public ISysServiceSMO getSysServiceSMOImpl() {
- return sysServiceSMOImpl;
- }
- public void setSysServiceSMOImpl(ISysServiceSMO sysServiceSMOImpl) {
- this.sysServiceSMOImpl = sysServiceSMOImpl;
- }
- }
|