package com.zioinfo.signage.mapper;

import com.zioinfo.signage.auth.SignageUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserMapper {
    List<SignageUser> findAll(@Param("tenantCode") String tenantCode,
                          @Param("role") String role);
    SignageUser findById(@Param("id") Long id);
    SignageUser findByUsername(@Param("username") String username);
    int insert(SignageUser user);
    int update(SignageUser user);
    int updatePassword(@Param("id") Long id, @Param("passwordHash") String passwordHash);
    int delete(@Param("id") Long id);
}
