Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions apps/locales/en_US/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -9492,4 +9492,28 @@ msgid "enable cors"
msgstr ""

msgid "cors config"
msgstr ""

msgid "Get published application list by page"
msgstr ""

msgid "Portal login"
msgstr ""

msgid "Invalid encrypted data"
msgstr ""

msgid "Portal authentication is not enabled"
msgstr ""

msgid "Portal authentication is not configured"
msgstr ""

msgid "Portal local login is not enabled"
msgstr ""

msgid "Get portal login info"
msgstr ""

msgid "Portal logout"
msgstr ""
26 changes: 25 additions & 1 deletion apps/locales/zh_CN/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -9616,4 +9616,28 @@ msgid "enable cors"
msgstr "是否开启跨域设置"

msgid "cors config"
msgstr "跨域配置"
msgstr "跨域配置"

msgid "Get published application list by page"
msgstr "分页获取已发布应用列表"

msgid "Portal login"
msgstr "门户登录"

msgid "Invalid encrypted data"
msgstr "无效的加密数据"

msgid "Portal authentication is not enabled"
msgstr "门户身份认证未开启"

msgid "Portal authentication is not configured"
msgstr "门户身份认证未配置"

msgid "Portal local login is not enabled"
msgstr "门户本地登录未开启"

msgid "Get portal login info"
msgstr "获取门户登录信息"

msgid "Portal logout"
msgstr "门户退出登录"
26 changes: 25 additions & 1 deletion apps/locales/zh_Hant/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -9615,4 +9615,28 @@ msgid "enable cors"
msgstr "是否開啟跨域設置"

msgid "cors config"
msgstr "跨域配置"
msgstr "跨域配置"

msgid "Get published application list by page"
msgstr "分頁獲取已發布應用列表"

msgid "Portal login"
msgstr "門戶登錄"

msgid "Invalid encrypted data"
msgstr "無效的加密數據"

msgid "Portal authentication is not enabled"
msgstr "門戶身份認證未開啟"

msgid "Portal authentication is not configured"
msgstr "門戶身份認證未配置"

msgid "Portal local login is not enabled"
msgstr "門戶本地登錄未開啟"

msgid "Get portal login info"
msgstr "獲取門戶登錄信息"

msgid "Portal logout"
msgstr "門戶退出登錄"
54 changes: 54 additions & 0 deletions apps/portal/api/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
@date:2026/8/3
@desc: 门户API文档
"""
from drf_spectacular.types import OpenApiTypes
from drf_spectacular.utils import OpenApiParameter

from common.mixins.api_mixin import APIMixin
from common.result import DefaultResultSerializer
from users.serializers.login import LoginRequest


class PortalAPI(APIMixin):
Expand Down Expand Up @@ -41,3 +45,53 @@ def get_request():
@staticmethod
def get_response():
return DefaultResultSerializer

class Application(APIMixin):
@staticmethod
def get_parameters():
return [
OpenApiParameter(
name='current_page',
description='当前页码',
type=OpenApiTypes.INT,
location='path',
required=True,
),
OpenApiParameter(
name='page_size',
description='每页数量',
type=OpenApiTypes.INT,
location='path',
required=True,
),
OpenApiParameter(
name='name',
description='应用名称搜索',
type=OpenApiTypes.STR,
location='query',
required=False,
),
]

@staticmethod
def get_response():
return DefaultResultSerializer

class Login(APIMixin):
@staticmethod
def get_request():
return LoginRequest

@staticmethod
def get_response():
return DefaultResultSerializer

class Info(APIMixin):
@staticmethod
def get_response():
return DefaultResultSerializer

class Logout(APIMixin):
@staticmethod
def get_response():
return DefaultResultSerializer
Loading
Loading