StaffService.java 1.31 KB
Newer Older
1 2 3 4 5 6
package cn.wisenergy.service.app;

import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.app.Staff;
import cn.wisenergy.model.dto.StaffDto;
import cn.wisenergy.model.vo.QueryVo;
7
import cn.wisenergy.model.vo.StaffChangPwdVo;
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 42 43
import cn.wisenergy.model.vo.StaffVo;
import com.github.pagehelper.PageInfo;

/**
 * 员工接口
 */
public interface StaffService {

    /**
     * 禁用员工账号
     *
     * @param staffId 用户id
     * @return true 成功 false 失败
     */
    R<Boolean> delete(Integer staffId);

    /**
     * 查询员工信息集合
     * @param queryVo 查询信息
     * @return 员工信息集合
     */
    R<PageInfo<StaffDto>> getStaffList(QueryVo queryVo);

    /**
     * 编辑员工信息
     * @param staff 需要编辑的信息
     * @return true:成功 false:失败
     */
    R<Boolean> editStaff(StaffVo staff);

    /**
     * 添加员工信息
     * @param staff 需要添加的员工信息
     * @return true: 成功  false:失败
     */
    R<Boolean> addStaff(StaffVo staff);
cy's avatar
cy committed
44 45 46 47 48 49 50

    /**
     * 重置密码
     * @param staffId 员工id
     * @return
     */
    R<Boolean> resetPassword(Integer staffId);
51 52 53 54 55 56 57

    /***
     * 员工端修改密码
     * @param staffChangPwdVo
     * @return true/false
     */
    R<Boolean> updatePassword(StaffChangPwdVo staffChangPwdVo);
58
}