Documentation
¶
Overview ¶
* @Author : Symphony zhangleping@cezhiqiu.com * @Date : 2024-05-08 19:49:42 * @LastEditors : Symphony zhangleping@cezhiqiu.com * @LastEditTime : 2024-05-08 19:51:36 * @FilePath : /v2/go-common-v2-dh-middleware/jwt.go * @Description : * * Copyright (c) 2024 by 大合前研, All Rights Reserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTGenerateToken ¶
func JWTGenerateToken(jwtSecret, refreshSecret, userId, account string, expSec int64, refreshSec int64) (string, string, error)
生成JWT Token
func JWTParseToken ¶
func JWTParseToken(jwtSecret string) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.