工业级运维app手机api
沈斌
2017-11-02 496013bb8dc07ca0996c004bda35574017a1f4f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.moral.monitor.service;
 
import com.moral.monitor.dao.LoginDao;
import com.moral.monitor.entity.Account;
import com.moral.monitor.util.Crypto;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
 
/**
 * Created by zhang on 2017/7/4.
 */
@Service
public class LoginService {
    @Resource
    LoginDao loginDao;
    public Account login(String account, String password){
        return loginDao.login(account, Crypto.md5(password));
    }
}