perf: api doc

pull/9228/head
feng 2022-12-20 19:18:39 +08:00
parent 6e467d9b67
commit 21d6243b61
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ class FTPLogViewSet(CreateModelMixin, ListModelMixin, OrgGenericViewSet):
date_range_filter_fields = [ date_range_filter_fields = [
('date_start', ('date_from', 'date_to')) ('date_start', ('date_from', 'date_to'))
] ]
filterset_fields = ['user', 'asset', 'system_user', 'filename'] filterset_fields = ['user', 'asset', 'account', 'filename']
search_fields = filterset_fields search_fields = filterset_fields
ordering = ['-date_start'] ordering = ['-date_start']

View File

@ -13,15 +13,15 @@ class PermissionBaseFilter(BaseFilterSet):
is_valid = filters.BooleanFilter(method='do_nothing') is_valid = filters.BooleanFilter(method='do_nothing')
user_id = filters.UUIDFilter(method='do_nothing') user_id = filters.UUIDFilter(method='do_nothing')
username = filters.CharFilter(method='do_nothing') username = filters.CharFilter(method='do_nothing')
system_user_id = filters.UUIDFilter(method='do_nothing') account_id = filters.UUIDFilter(method='do_nothing')
system_user = filters.CharFilter(method='do_nothing') account = filters.CharFilter(method='do_nothing')
user_group_id = filters.UUIDFilter(method='do_nothing') user_group_id = filters.UUIDFilter(method='do_nothing')
user_group = filters.CharFilter(method='do_nothing') user_group = filters.CharFilter(method='do_nothing')
all = filters.BooleanFilter(method='do_nothing') all = filters.BooleanFilter(method='do_nothing')
class Meta: class Meta:
fields = ( fields = (
'user_id', 'username', 'system_user_id', 'system_user', 'user_id', 'username', 'account_id', 'account',
'user_group_id', 'user_group', 'name', 'all', 'is_valid', 'user_group_id', 'user_group', 'name', 'all', 'is_valid',
) )