feat(user): 实现用户退出登录功能
- 在LogoutLogic中添加退出登录逻辑 - 更新用户API描述文件中的注释格式 - 移除无效的注释标记符号 - 规范化API注释内容格式
This commit is contained in:
parent
4d9353cfa5
commit
65ff8ddb62
|
|
@ -181,7 +181,7 @@ service App {
|
||||||
@handler getUserInfoById
|
@handler getUserInfoById
|
||||||
post /user (IDReq) returns (UserInfo)
|
post /user (IDReq) returns (UserInfo)
|
||||||
|
|
||||||
//@ Get UserInfo detail By Token | 获取用户信息
|
// Get UserInfo detail By Token | 获取用户信息
|
||||||
@handler getUserInfoByToken
|
@handler getUserInfoByToken
|
||||||
post /user/info () returns (UserInfo)
|
post /user/info () returns (UserInfo)
|
||||||
|
|
||||||
|
|
@ -193,7 +193,7 @@ service App {
|
||||||
@handler updateUserInfo
|
@handler updateUserInfo
|
||||||
post /user/update (UserInfo) returns (BaseDataInfo)
|
post /user/update (UserInfo) returns (BaseDataInfo)
|
||||||
|
|
||||||
// Logout | 退出登录
|
// Logout | 退出登录
|
||||||
@handler logout
|
@handler logout
|
||||||
post /user/logout (IDReq) returns (BaseDataInfo)
|
post /user/logout (IDReq) returns (BaseDataInfo)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
func (l *LogoutLogic) Logout(req *types.IDReq) (resp *types.BaseDataInfo, err error) {
|
||||||
|
// todo: add your logic here and delete this line
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue