package com.td.WaDa.sys.sysuserauthority.service;

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