File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class DataRule(Base):
18
18
column : Mapped [str ] = mapped_column (String (20 ), comment = '数据库字段' )
19
19
operator : Mapped [int ] = mapped_column (comment = '运算符(0:and、1:or)' )
20
20
expression : Mapped [int ] = mapped_column (
21
- comment = '表达式(0:> 、1:> =、2:< 、3:< =、4:== 、5:! =、6:in、7:not_in)'
21
+ comment = '表达式(0:== 、1:! =、2:> 、3:> =、4:< 、5:< =、6:in、7:not_in)'
22
22
)
23
23
value : Mapped [str ] = mapped_column (String (255 ), comment = '规则值' )
24
24
Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ class RoleDataRuleOperatorType(IntEnum):
45
45
class RoleDataRuleExpressionType (IntEnum ):
46
46
"""数据权限规则表达式"""
47
47
48
- eq = 0
49
- ne = 1
50
- gt = 2
51
- ge = 3
52
- lt = 4
53
- le = 5
48
+ eq = 0 # ==
49
+ ne = 1 # !=
50
+ gt = 2 # >
51
+ ge = 3 # >=
52
+ lt = 4 # <
53
+ le = 5 # <=
54
54
in_ = 6
55
55
not_in = 7
56
56
You can’t perform that action at this time.
0 commit comments