feat: base systemuser增加筛选条件

This commit is contained in:
caoqianming 2024-04-12 16:43:48 +08:00
parent b2b2cf70bc
commit d923ac7e70
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,11 @@ class UserFilterSet(filters.FilterSet):
'post': ['exact'],
'belong_dept': ['exact'],
'depts': ['exact'],
'type': ['exact', 'in']
'type': ['exact', 'in'],
'belong_dept__name': ['exact'],
'depts__name': ["exact"],
'posts__name': ["exact"],
'posts__code': ["exact"],
}