package com.jwipc.sys.client;

import com.jwipc.sys.client.dto.CreateUserCDTO;
import com.jwipc.sys.client.dto.UserDTO;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
public interface UserClient {
    public UserDTO getByUserId(Long id) ;

    public List<UserDTO> getByUserIds(Collection<? extends Serializable> idList) ;

    public Long createSupplierUser(CreateUserCDTO createUserDTO);


    public UserDTO getByAccount(String account);

    public UserDTO getByName(String name);

    public void updateUserCode(Long supplierId, String supplierCode) ;

    public void noPasswordLogin(Long userId);

    void updateSupplierName(String supplierName, Long supplierId);

    /**
     * 获取用户的角色编码list
     * @param userId
     */
    List<String> getUserRoleKeys(Long userId);

    public int getBySupplierId(Long supplierId) ;

    void  updateStatusBySupplier(Long supplierId, Integer status) ;

    public UserDTO getByUserCodeOrName(String userCode, String userName);
}
