You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.4 KiB
80 lines
1.4 KiB
5 years ago
|
package com.epmet.service;
|
||
|
|
||
|
import com.epmet.commons.mybatis.service.BaseService;
|
||
|
import com.epmet.commons.tools.page.PageData;
|
||
|
import com.epmet.dto.UserDTO;
|
||
|
import com.epmet.entity.UserEntity;
|
||
|
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
|
||
|
/**
|
||
|
* @Description
|
||
|
* @IntefaceName UserService
|
||
|
* @Author wangc
|
||
|
* @date 2020.03.28 14:34
|
||
|
*/
|
||
|
public interface UserService extends BaseService<UserEntity> {
|
||
|
|
||
|
/**
|
||
|
* 默认分页
|
||
|
*
|
||
|
* @param params
|
||
|
* @return PageData<UserDTO>
|
||
|
* @author generator
|
||
|
* @date 2020-03-18
|
||
|
*/
|
||
|
PageData<UserDTO> page(Map<String, Object> params);
|
||
|
|
||
|
/**
|
||
|
* 默认查询
|
||
|
*
|
||
|
* @param params
|
||
|
* @return java.util.List<UserDTO>
|
||
|
* @author generator
|
||
|
* @date 2020-03-18
|
||
|
*/
|
||
|
List<UserDTO> list(Map<String, Object> params);
|
||
|
|
||
|
/**
|
||
|
* 单条查询
|
||
|
*
|
||
|
* @param id
|
||
|
* @return UserDTO
|
||
|
* @author generator
|
||
|
* @date 2020-03-18
|
||
|
*/
|
||
|
UserDTO get(String id);
|
||
|
|
||
|
/**
|
||
|
* 默认保存
|
||
|
*
|
||
|
* @param dto
|
||
|
* @return void
|
||
|
* @author generator
|
||
|
* @date 2020-03-18
|
||
|
*/
|
||
|
void save(UserDTO dto);
|
||
|
|
||
|
/**
|
||
|
* 默认更新
|
||
|
*
|
||
|
* @param dto
|
||
|
* @return void
|
||
|
* @author generator
|
||
|
* @date 2020-03-18
|
||
|
*/
|
||
|
void update(UserDTO dto);
|
||
|
|
||
|
/**
|
||
|
* 批量删除
|
||
|
*
|
||
|
* @param ids
|
||
|
* @return void
|
||
|
* @author generator
|
||
|
* @date 2020-03-18
|
||
|
*/
|
||
|
void delete(String[] ids);
|
||
|
|
||
|
}
|