From 65ff8ddb62d99592586c4d703f550fb169a485e8 Mon Sep 17 00:00:00 2001 From: huanglei19951029 <81128461+huanglei19951029@users.noreply.github.com> Date: Mon, 15 Dec 2025 11:26:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(user):=20=E5=AE=9E=E7=8E=B0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在LogoutLogic中添加退出登录逻辑 - 更新用户API描述文件中的注释格式 - 移除无效的注释标记符号 - 规范化API注释内容格式 --- api/desc/app/user.api | 4 ++-- api/internal/logic/user/logout_logic.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/desc/app/user.api b/api/desc/app/user.api index a044057..a3cf331 100644 --- a/api/desc/app/user.api +++ b/api/desc/app/user.api @@ -181,7 +181,7 @@ service App { @handler getUserInfoById post /user (IDReq) returns (UserInfo) - //@ Get UserInfo detail By Token | 获取用户信息 + // Get UserInfo detail By Token | 获取用户信息 @handler getUserInfoByToken post /user/info () returns (UserInfo) @@ -193,7 +193,7 @@ service App { @handler updateUserInfo post /user/update (UserInfo) returns (BaseDataInfo) - // Logout | 退出登录 + // Logout | 退出登录 @handler logout post /user/logout (IDReq) returns (BaseDataInfo) diff --git a/api/internal/logic/user/logout_logic.go b/api/internal/logic/user/logout_logic.go index 285f886..98d217f 100644 --- a/api/internal/logic/user/logout_logic.go +++ b/api/internal/logic/user/logout_logic.go @@ -24,6 +24,7 @@ func NewLogoutLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LogoutLogi } func (l *LogoutLogic) Logout(req *types.IDReq) (resp *types.BaseDataInfo, err error) { + // todo: add your logic here and delete this line return }