mirror of
https://github.com/langgenius/dify.git
synced 2026-04-17 03:16:33 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
17 lines
390 B
Python
17 lines
390 B
Python
from flask_restx import fields
|
|
|
|
online_user_partial_fields = {
|
|
"user_id": fields.String,
|
|
"username": fields.String,
|
|
"avatar": fields.String,
|
|
}
|
|
|
|
workflow_online_users_fields = {
|
|
"app_id": fields.String,
|
|
"users": fields.List(fields.Nested(online_user_partial_fields)),
|
|
}
|
|
|
|
online_user_list_fields = {
|
|
"data": fields.List(fields.Nested(workflow_online_users_fields)),
|
|
}
|