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}, "")
|
|
|
|
}
|