feat(user): 实现用户退出登录功能

- 在LogoutLogic中添加退出登录逻辑
- 更新用户API描述文件中的注释格式
- 移除无效的注释标记符号
- 规范化API注释内容格式
This commit is contained in:
huanglei19951029 2025-12-15 11:26:43 +08:00
parent 4d9353cfa5
commit 65ff8ddb62
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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
}