Compare commits

..

2 Commits

Author SHA1 Message Date
zhaoxiaorong
5819a8e08f fix JwtClaims SsoToken 2025-02-13 18:01:24 +08:00
zhaoxiaorong
a2e3bfab77 fix 2025-02-11 14:22:14 +08:00
2 changed files with 2 additions and 3 deletions

View File

@@ -15,12 +15,11 @@ type Reply struct {
func (reply *Reply) Success(ctx *gin.Context, data any) {
reply.Code = 200
reply.Data = data
if data == nil {
reply.Data = ""
}
ctx.JSON(200, reply)
return
}
func (reply *Reply) Error(ctx *gin.Context, err error) {
reply.Code = 500
@@ -34,5 +33,4 @@ func (reply *Reply) Error(ctx *gin.Context, err error) {
// Send error
ctx.JSON(200, reply)
return
}

View File

@@ -13,4 +13,5 @@ type JwtClaims struct {
Owner any `json:"owner"`
Role string `json:"role"`
ExpiresAt int64 `json:"exp"`
SsoToken string `json:"sso_token"`
}