package com.jd.platform.hotkey.dashboard.biz.service;

import com.github.pagehelper.PageInfo;
import com.jd.platform.hotkey.dashboard.common.domain.req.PageReq;
import com.jd.platform.hotkey.dashboard.common.domain.req.SearchReq;
import com.jd.platform.hotkey.dashboard.model.Worker;

/**
 * @ProjectName: hotkey
 * @ClassName: WorkerService
 * @Description: TODO(一句话描述该类的功能)
 * @Author: liyunfeng31
 * @Date: 2020/4/17 16:28
 */
public interface WorkerService {
    PageInfo<Worker> pageWorker(PageReq page, SearchReq param);

    int insertWorkerByUser(Worker worker);

    int insertWorkerBySys(Worker worker);

    Worker selectByPrimaryKey(int id);

    int updateWorkerByUser(Worker worker);

    int delWorkerByUser(Worker worker);

    int updateWorker(Worker worker);

    Worker selectByKey(String key);
}
