perf: 批量创建账号 定义创建账号策略 忽略或抛出错误 (#10028)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-03-22 11:09:48 +08:00
committed by GitHub
parent 8e61b53460
commit ed4a4ceca1
3 changed files with 127 additions and 17 deletions

View File

@@ -18,3 +18,9 @@ class AliasAccount(TextChoices):
class Source(TextChoices):
LOCAL = 'local', _('Local')
COLLECTED = 'collected', _('Collected')
class BulkCreateStrategy(TextChoices):
SKIP = 'skip', _('Skip')
UPDATE = 'update', _('Update')
ERROR = 'error', _('Failed')