UserService.java
762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.gxb.modules.api.service;
import com.gxb.modules.api.entity.UserEntity;
import java.util.List;
import java.util.Map;
/**
* 用户
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2017-03-23 15:22:06
*/
public interface UserService {
UserEntity queryObject(Long userId);
List<UserEntity> queryList(Map<String, Object> map);
int queryTotal(Map<String, Object> map);
void save(String mobile, String password);
void update(UserEntity user);
void delete(Long userId);
void deleteBatch(Long[] userIds);
UserEntity queryByMobile(String mobile);
/**
* 用户登录
* @param mobile 手机号
* @param password 密码
* @return 返回用户ID
*/
long login(String mobile, String password);
}