| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- package cn.com.goldenwater.dcproj.service;
- import cn.com.goldenwater.core.service.CrudService;
- import cn.com.goldenwater.dcproj.dto.UserDto;
- import cn.com.goldenwater.dcproj.model.User;
- import cn.com.goldenwater.dcproj.param.UserParam;
- import cn.com.goldenwater.dcproj.param.UserRoleParam;
- import cn.com.goldenwater.dcproj.util.PageListResult;
- import com.github.pagehelper.PageInfo;
- import java.util.List;
- import java.util.Map;
- /**
- * @author lune
- * @date 2018-2-13
- */
- public interface UserService extends CrudService<User, UserParam> {
- // ------------------------- 自定方法 -------------------------
- /**
- * 获取当前用户
- *
- * @return
- */
- public User getUser();
- /**
- * 根据用户登录名查询用户信息
- *
- * @param loginName
- * @return
- */
- public User getByLoginName(String loginName);
- /**
- * 通过部门ID获取用户列表,仅返回用户id和name(树查询用户时用)
- *
- * @param officeId
- * @return
- */
- public List<User> findUserByOfficeId(String officeId);
- /**
- * 根据用户ID查询用户(级联:机构、角色、岗位)
- *
- * @param id
- * @return
- */
- public UserDto getCascade(String id);
- /**
- * 根据手机短信登陆系统
- *
- * @param userMobile
- * @param sms
- * @param src
- * @return
- */
- public UserDto loginBySms(String userMobile, String sms, String src);
- /**
- * 分页获取用户列表-不包含分页信息
- * @param param
- * @return
- */
- public List<UserDto> findPageDto(UserParam param);
- /**
- * 分页获取用户列表-包含分页信息
- * @param param
- * @return
- */
- public PageInfo<UserDto> findPageInfoDto(UserParam param);
- /**
- * 分页获取用户列表-包含分页信息
- * @param param
- * @return
- */
- public PageListResult<UserDto> findPageInfoList(UserParam param);
- /**
- * 新增用户,并且关联角色
- * @param user
- * @param list
- */
- void insertUser(User user, List<UserRoleParam> list, UserRoleParam param);
- /**
- * 更新用户,并且关联角色
- * @param user
- * @param list
- */
- void updateUser(User user, List<UserRoleParam> list, UserRoleParam param);
- /**
- * 修改密码
- *
- * @param id
- * @param password
- * @param newPassword
- * @return
- */
- public int changePassword(String id, String password, String newPassword);
- Map<String, Object> login(String userCode, String userPwd) throws Exception;
- }
|