feat: 添加 command-review API

This commit is contained in:
Bai
2022-12-06 18:26:07 +08:00
committed by Jiangjie.Bai
parent 71e76e5075
commit c9bf99468c
12 changed files with 134 additions and 39 deletions

View File

@@ -0,0 +1,16 @@
from tickets.models import ApplyCommandTicket
from .ticket import TicketApplySerializer
__all__ = [
'ApplyCommandReviewSerializer',
]
class ApplyCommandReviewSerializer(TicketApplySerializer):
class Meta:
model = ApplyCommandTicket
writeable_fields = [
'apply_run_user', 'apply_run_asset', 'apply_run_account', 'apply_run_command',
'apply_from_session', 'apply_from_cmd_filter_acl'
]
fields = TicketApplySerializer.Meta.fields + writeable_fields