/**
* @Title: BaseServiceImpl.java
* @Package org.service.impl
* @Description: TODO该方法的主要作用:
* @author A18ccms A18ccms_gmail_com
* @date 2017-9-22 下午8:50:26
* @version V1.0
*/
package org.service.impl;
import org.dao.IUserDao;
import org.dao.impl.UserDaoImpl;
import org.entity.Users;
import org.service.IUserService;
/**
*
* 项目名称:test_face_photo
* 类名称:BaseServiceImpl
* 类描述: Service接口的实现类
* 创建人:Mu Xiongxiong
* 创建时间:2017-9-22 下午8:50:26
* 修改人:Mu Xiongxiong
* 修改时间:2017-9-22 下午8:50:26
* 修改备注:
* @version
*
*/
public class UserServiceImpl implements IUserService {
private IUserDao userDao = new UserDaoImpl();
/**(非 Javadoc)
* <p>Description(描述):注册 </p>
* <p>Title: save</p>
* @return
* @see org.service.IUserService#save()
*/
@Override
public int save(Users user) {
// TODO Auto-generated method stub
return userDao.save(user);
}
/**(非 Javadoc)
* <p>Description(描述): 登陆</p>
* <p>Title: queryInfoByUsername</p>
* @param username
* @return
* @see org.service.IUserService#queryInfoByUsername(java.lang.String)
*/
@Override
public Users queryInfoByUsername(String username) {
// TODO Auto-generated method stub
return userDao.queryInfoByUsername(username);
}
}
java实现人脸识别源码【含测试效果图】——ServiceImpl层(UserServiceImpl)
最新推荐文章于 2024-09-23 11:41:51 发布