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

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