package com.YuyeTech.HeartRate.sys.sysuserauthority.service;

import com.YuyeTech.HeartRate.common.pojo.Result;
import com.YuyeTech.HeartRate.common.service.CommonService;
import com.YuyeTech.HeartRate.sys.sysuserauthority.pojo.SysUserAuthority;
import com.YuyeTech.HeartRate.sys.sysuserauthority.vo.SysUserAuthorityVo;

import java.util.List;

public interface SysUserAuthorityService extends CommonService<SysUserAuthorityVo, SysUserAuthority, String> {
    Result<List<SysUserAuthorityVo>> findByUserId(String userId);

    Result<Boolean> saveAllByUserId(String userId, String authorityIdList);
}
