zxl
5 天以前 2701dca44e1972afe9956ced2f949d2998c1bb4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package cn.lili.modules.member.service;
 
import cn.lili.modules.member.entity.dos.StoreClerkRole;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * 店铺店员角色业务层
 *
 * @author Chopper
 * @since 2020/11/17 3:46 下午
 */
public interface StoreClerkRoleService extends IService<StoreClerkRole> {
 
    /**
     * 根据用户查看拥有的角色
     *
     * @param clerkId 店员id
     * @return
     */
    List<StoreClerkRole> listByUserId(String clerkId);
 
    /**
     * 根据店员id查看角色
     *
     * @param clerkId 店员id
     * @return
     */
    List<String> listId(String clerkId);
 
    /**
     * 更新用户拥有的角色
     *
     * @param clerkId         店员id
     * @param storeClerkRoles 角色权限
     */
    void updateClerkRole(String clerkId, List<StoreClerkRole> storeClerkRoles);
 
 
}