update
This commit is contained in:
parent
1f289c5ca9
commit
019b16a39a
@ -1,6 +1,6 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from model.field_type import MdbObjectId
|
||||
from model.field_type import MdbObjectId, IntStr
|
||||
|
||||
|
||||
class GBaseModel(BaseModel):
|
||||
@ -16,7 +16,7 @@ class GBaseModel(BaseModel):
|
||||
role_create_time: int = Field(None, title="角色创建时间")
|
||||
role_level: int = Field(None, title="角色等级")
|
||||
role_vip: int = Field(None, title="角色vip等级")
|
||||
role_stage: int = Field(None, title="关卡")
|
||||
role_stage: IntStr = Field(None, title="关卡")
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
|
Loading…
Reference in New Issue
Block a user