|
@@ -89,7 +89,7 @@ func (c *auth) Token(ctx *gin.Context) {
|
|
|
|
|
|
// redis记录缓存2小时
|
|
|
cache.Redis.Set(getAccessTokenKey(userInfo.TenantId, userInfo.ID, random), jwtToken, 2*time.Hour)
|
|
|
- ctx.JSON(http.StatusOK, common.SuccessResponse(common.Success, model.RspToken{
|
|
|
+ ctx.JSON(http.StatusOK, model.RspToken{
|
|
|
TenantId: userInfo.TenantId,
|
|
|
UserId: userInfo.ID,
|
|
|
RoleId: userInfo.RoleId,
|
|
@@ -104,7 +104,7 @@ func (c *auth) Token(ctx *gin.Context) {
|
|
|
TokenType: model.BEARER,
|
|
|
ExpiresIn: 7200,
|
|
|
License: "",
|
|
|
- }))
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
func (c *auth) Logout(ctx *gin.Context) {
|