21 lines
543 B
Python
21 lines
543 B
Python
from Utils.ObjUtil import SpecObject
|
|
from Utils.ValidateUtil import ValidateAttr
|
|
|
|
|
|
class User(SpecObject):
|
|
"""普通用户"""
|
|
|
|
uid = ValidateAttr(field='uid', type=str)
|
|
name = ValidateAttr(field='name', type=str)
|
|
pwd = ValidateAttr(field='pwd', type=str)
|
|
email = ValidateAttr(field='email', type=str)
|
|
telephone = ValidateAttr(field='telephone', type=str)
|
|
|
|
fields_map = {
|
|
"uid": "用户ID",
|
|
"name": "姓名",
|
|
"pwd": "密码",
|
|
"email": "邮箱",
|
|
"telephone": "手机号"
|
|
}
|