structs/users.py¶
structs.users ¶
User Structs
PolicySigned ¶
Bases: BaseModel
Policy Signed struct
Attributes:
Name | Type | Description |
---|---|---|
uid |
str
|
user id. |
type |
PolicyType
|
type of |
sign_at |
datetime
|
datetime. |
Source code in structs/users.py
PolicyType ¶
User ¶
Bases: BaseModel
User struct
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
user id. (alias: |
created_at |
int
|
timestamp. |
mail |
EmailStr
|
mail. |
profile |
Optional[UserProfle]
|
profile info. |
profile_real |
Optional[UserProfleReal]
|
real profile info. |
Todo
Need to convert the int
type to datetime
of created_at
.
Source code in structs/users.py
UserAddress ¶
Bases: BaseModel
User Address
Attributes:
Name | Type | Description |
---|---|---|
code |
str
|
postal code. |
receiver |
str
|
receiver name. |
address |
str
|
address. |
Source code in structs/users.py
UserBank ¶
Bases: BaseModel
User Bank info
Attributes:
Name | Type | Description |
---|---|---|
code |
str
|
bank code. |
no |
str
|
bank account numbers. |
branch |
str
|
bank branch name. |
name |
str
|
bank account name. |
Source code in structs/users.py
UserProfle ¶
Bases: BaseModel
User Profile struct
Attributes:
Name | Type | Description |
---|---|---|
badge_name |
str
|
Badge name. |
intro |
str
|
introduction. |
Source code in structs/users.py
UserProfleReal ¶
Bases: UserProfleRealBase
User Profile Real struct
Attributes:
Name | Type | Description |
---|---|---|
birthday |
Optional[datetime]
|
(optional) birthday. |
bank |
Optional[UserBank]
|
(optional) bank info. |
address |
Optional[UserAddress]
|
(optional) address info. |
dietary_habit |
Optional[list[DietaryHabitItemsValue]]
|
(optional) dietary habit info. |
Source code in structs/users.py
UserProfleRealBase ¶
Bases: BaseModel
User Profile Real Base struct
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
name. |
phone |
str
|
phone numbers. |
roc_id |
str
|
user national id. |
company |
str
|
company or school name. |