工业级运维app手机api
沈斌
2017-11-28 6cce9ad4c95a9cf7c1afc066fe71d8eac482f76f
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));
    }
}