mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
add ParseToken
This commit is contained in:
parent
0bc8e231ad
commit
c37d2e78d2
@ -118,7 +118,7 @@ func ParseToken(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
resp := api.ParseTokenResp{CommResp: api.CommResp{ErrCode: 0, ErrMsg: ""}, ExpireTime: api.ExpireTime{ExpireTimeSeconds: expireTime}}
|
resp := api.ParseTokenResp{CommResp: api.CommResp{ErrCode: 0, ErrMsg: ""}, ExpireTime: api.ExpireTime{ExpireTimeSeconds: uint32(expireTime)}}
|
||||||
log.NewInfo(params.OperationID, "ParseToken return ", resp)
|
log.NewInfo(params.OperationID, "ParseToken return ", resp)
|
||||||
c.JSON(http.StatusOK, resp)
|
c.JSON(http.StatusOK, resp)
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ type ParseTokenReq struct {
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
type ExpireTime struct {
|
type ExpireTime struct {
|
||||||
ExpireTimeSeconds int64 `json:"expireTimeSeconds" `
|
ExpireTimeSeconds uint32 `json:"expireTimeSeconds" `
|
||||||
}
|
}
|
||||||
|
|
||||||
type ParseTokenResp struct {
|
type ParseTokenResp struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user