Skip to content

Commit

Permalink
fix: the problem of pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
7086cmd committed Feb 27, 2024
1 parent 72ddb05 commit 0f34fca
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion typings/group.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Optional
from pydantic import BaseModel, Field
from enum import Enum
from typings.user import UserPosition
from bson import ObjectId


Expand All @@ -11,6 +10,16 @@ class GroupType(str, Enum):
group = "group"


class UserPosition(str, Enum):
student = "student"
secretary = "secretary"
department = "department"
auditor = "auditor"
admin = "admin"
system = "system"



class Group(BaseModel):
_id: ObjectId | str
name: str
Expand Down

0 comments on commit 0f34fca

Please sign in to comment.