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

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