You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
604 B
38 lines
604 B
package common
|
|
|
|
import (
|
|
"appNewPlatform/generalmethod"
|
|
"appNewPlatform/utils"
|
|
"appNewPlatform/utils/formatoutput"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
/*
|
|
*
|
|
@ 作者: 秦东
|
|
@ 时间: 2024-10-03 13:57:49
|
|
@ 功能: 实验函数
|
|
@ 参数
|
|
|
|
#
|
|
|
|
@ 返回值
|
|
|
|
#
|
|
|
|
@ 方法原型
|
|
|
|
#
|
|
*/
|
|
func (a *ApiMethod) Index(c *gin.Context) {
|
|
sendMap := generalmethod.MapOut[string]()
|
|
token, _ := utils.ReleaseToken("300450")
|
|
sendMap["token"] = token
|
|
sendMap["tokenStr"], sendMap["claims"], sendMap["err"] = utils.ParseToken(token)
|
|
formatoutput.Result(0, sendMap, c)
|
|
}
|
|
|
|
func (a *ApiMethod) JieXiJwt(c *gin.Context) {
|
|
|
|
}
|
|
|