liujie
2026-09-20 25999c575dd42b4715e49d3fe57e73c2c3204ccb
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
package com.estate.expert.admin.domain.role;
 
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
 
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class Permission {
 
    public static final String OP_LIST = "list";
 
    public static final String OP_ADD = "add";
 
    public static final String OP_EDIT = "edit";
 
    public static final String OP_DELETE = "delete";
 
 
    public String id;
 
    private String module;
 
    private String op;
 
    private String name;
 
    //of
    public static Permission of(String module, String op, String name) {
        return new Permission(module + ":" + op, module, op, name);
    }
}