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

import com.jd.platform.hotkey.dashboard.common.domain.req.SearchReq;
import com.jd.platform.hotkey.dashboard.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(User user);

    User selectByPrimaryKey(Integer id);

    int updateByPk(User record);

    List<User> listUser(SearchReq param);

    User findByNameAndPwd(User user);

    List<String> listApp();

    List<User> selectHkUserList(User user);

    User selectByUserName(String userName);

    List<String> listUserByApp(String app);
}