+42









Yeuoly
GitHub
kurokobo
Hiroshi Fujita
NFish
Gen Sato
eux
huangzhuo1949
huangzhuo
lotsik
crazywoola
Wu Tianwei
nite-knite
Jyong
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
gakkiyomi
CN-P5
CN-P5
Chuehnone
yihong
Kevin9703
-LAN-
Boris Feld
mbo
mabo
Warren Chen
KVOJJJin
JzoNgKVO
jiandanfeng
zhu-an
zhaoqingyu.1075
海狸大師
Xu Song
rayshaw001
Ding Jiatong
Bowen Liang
JasonVV
le0zh
zhuxinliang
k-zaku
Joel
luckylhb90
hobo.l
jiangbo721
刘江波
Shun Miyazawa
EricPan
crazywoola
zxhlyh
sino
Jhvcc
lowell
899df30bf6
Signed-off-by: yihong0618 <[email protected]> Signed-off-by: -LAN- <[email protected]> Co-authored-by: kurokobo <[email protected]> Co-authored-by: Hiroshi Fujita <[email protected]> Co-authored-by: NFish <[email protected]> Co-authored-by: Gen Sato <[email protected]> Co-authored-by: eux <[email protected]> Co-authored-by: huangzhuo1949 <[email protected]> Co-authored-by: huangzhuo <[email protected]> Co-authored-by: lotsik <[email protected]> Co-authored-by: crazywoola <[email protected]> Co-authored-by: Wu Tianwei <[email protected]> Co-authored-by: nite-knite <[email protected]> Co-authored-by: Jyong <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: gakkiyomi <[email protected]> Co-authored-by: CN-P5 <[email protected]> Co-authored-by: CN-P5 <[email protected]> Co-authored-by: Chuehnone <[email protected]> Co-authored-by: yihong <[email protected]> Co-authored-by: Kevin9703 <[email protected]> Co-authored-by: -LAN- <[email protected]> Co-authored-by: Boris Feld <[email protected]> Co-authored-by: mbo <[email protected]> Co-authored-by: mabo <[email protected]> Co-authored-by: Warren Chen <[email protected]> Co-authored-by: KVOJJJin <[email protected]> Co-authored-by: JzoNgKVO <[email protected]> Co-authored-by: jiandanfeng <[email protected]> Co-authored-by: zhu-an <[email protected]> Co-authored-by: zhaoqingyu.1075 <[email protected]> Co-authored-by: 海狸大師 <[email protected]> Co-authored-by: Xu Song <[email protected]> Co-authored-by: rayshaw001 <[email protected]> Co-authored-by: Ding Jiatong <[email protected]> Co-authored-by: Bowen Liang <[email protected]> Co-authored-by: JasonVV <[email protected]> Co-authored-by: le0zh <[email protected]> Co-authored-by: zhuxinliang <[email protected]> Co-authored-by: k-zaku <[email protected]> Co-authored-by: Joel <[email protected]> Co-authored-by: luckylhb90 <[email protected]> Co-authored-by: hobo.l <[email protected]> Co-authored-by: jiangbo721 <[email protected]> Co-authored-by: 刘江波 <[email protected]> Co-authored-by: Shun Miyazawa <[email protected]> Co-authored-by: EricPan <[email protected]> Co-authored-by: crazywoola <[email protected]> Co-authored-by: zxhlyh <[email protected]> Co-authored-by: sino <[email protected]> Co-authored-by: Jhvcc <[email protected]> Co-authored-by: lowell <[email protected]>
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
from flask_restful import fields # type: ignore
|
|
|
|
from libs.helper import AvatarUrlField, TimestampField
|
|
|
|
simple_account_fields = {"id": fields.String, "name": fields.String, "email": fields.String}
|
|
|
|
account_fields = {
|
|
"id": fields.String,
|
|
"name": fields.String,
|
|
"avatar": fields.String,
|
|
"avatar_url": AvatarUrlField,
|
|
"email": fields.String,
|
|
"is_password_set": fields.Boolean,
|
|
"interface_language": fields.String,
|
|
"interface_theme": fields.String,
|
|
"timezone": fields.String,
|
|
"last_login_at": TimestampField,
|
|
"last_login_ip": fields.String,
|
|
"created_at": TimestampField,
|
|
}
|
|
|
|
account_with_role_fields = {
|
|
"id": fields.String,
|
|
"name": fields.String,
|
|
"avatar": fields.String,
|
|
"avatar_url": AvatarUrlField,
|
|
"email": fields.String,
|
|
"last_login_at": TimestampField,
|
|
"last_active_at": TimestampField,
|
|
"created_at": TimestampField,
|
|
"role": fields.String,
|
|
"status": fields.String,
|
|
}
|
|
|
|
account_with_role_list_fields = {"accounts": fields.List(fields.Nested(account_with_role_fields))}
|