feat: UserModel 返回pos数据信息
This commit is contained in:
@@ -55,6 +55,15 @@ class UserServiceModel(PublicUser, table=True):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@computed_field
|
||||||
|
@property
|
||||||
|
def pos(self) -> Optional[PosModel]:
|
||||||
|
return self.position
|
||||||
|
|
||||||
|
@pos.setter
|
||||||
|
def pos(self, value: Optional[PosModel]) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
@computed_field
|
@computed_field
|
||||||
@property
|
@property
|
||||||
def pos_name(self) -> Optional[str]:
|
def pos_name(self) -> Optional[str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user