|
- package com.simple.service;
-
- import com.github.pagehelper.PageInfo;
- import com.simple.domain.po.MallUserInfo;
-
- public interface MallUserInfoService {
-
- /**
- * 根据实体查询分页列表
- *
- * @param record
- * @param offset
- * @param limit
- * @return
- */
- PageInfo<MallUserInfo> listAsPage(MallUserInfo record, Integer pageIndex, Integer pageSize);
-
- /**
- * 根据Id获得实体
- *
- * @param id
- * @return
- */
- MallUserInfo getById(Long id);
-
- /**
- * 保存或更新实体
- *
- * @param record
- */
- void saveOrUpdate(MallUserInfo record);
-
- /**
- * 根据Id删除实体
- *
- * @param id
- */
- void deleteById(Long id);
-
-
-
-
-
- /**
- * 查询用户名总数,用于校验用户名是否重复
- * @param username
- */
- long cntByUserName(String username);
-
- /**
- * 根据用户名查询用户对象
- * @param username
- * @return
- */
- MallUserInfo getByUsername(String username);
-
- /**
- * 删除用户相关数据(用户记录,角色关联)
- * @param id
- */
- void deleteUser(Long id);
-
- /**
- * 检查用户按钮是否有权限
- * @param userId
- * @param permission
- * @return 是否有权限(true: 有| false: 没有)
- */
- boolean hasButtonPermission(Long userId, String permission);
-
-
- boolean cntByUserName(String username, Long id);
-
- boolean cntByUserPhone(String phone, Long id);
-
- }
|