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

import com.YuyeTech.TPlat.common.pojo.Result;
import com.YuyeTech.TPlat.common.service.CommonService;
import com.YuyeTech.TPlat.sys.sysuserauthority.pojo.SysUserAuthority;
import com.YuyeTech.TPlat.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);
}
