update
This commit is contained in:
@@ -86,6 +86,7 @@ def batch_create(request, payload: BatchUsersIn):
|
|||||||
if existing_users.exists():
|
if existing_users.exists():
|
||||||
raise HttpError(400, "有些用户已经存在,创建失败")
|
raise HttpError(400, "有些用户已经存在,创建失败")
|
||||||
User.objects.bulk_create(user_list)
|
User.objects.bulk_create(user_list)
|
||||||
|
return {"message": "批量创建成功"}
|
||||||
|
|
||||||
|
|
||||||
@router.put("/active/{id}")
|
@router.put("/active/{id}")
|
||||||
|
|||||||
Reference in New Issue
Block a user