XinYeYouKu/app/http/controllers/front/Sm2Controller.go

13 lines
296 B
Go
Raw Normal View History

2024-06-11 14:57:08 +08:00
package front
import (
"github.com/gin-gonic/gin"
"qteam/app/http/controllers"
2024-07-08 18:01:02 +08:00
"qteam/app/utils"
2024-06-11 14:57:08 +08:00
)
func GetGenerateSm2Key(c *gin.Context) {
2024-07-08 18:01:02 +08:00
PublicKey, privateKey, _ := utils.GenerateSM2Key()
2024-06-11 14:57:08 +08:00
controllers.Success(c, map[string]string{"PublicKey": PublicKey, "privateKey": privateKey}, "")
}