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

13 lines
302 B
Go

package front
import (
"github.com/gin-gonic/gin"
"qteam/app/http/controllers"
"qteam/app/services"
)
func GetGenerateSm2Key(c *gin.Context) {
PublicKey, privateKey, _ := services.GenerateSM2Key()
controllers.Success(c, map[string]string{"PublicKey": PublicKey, "privateKey": privateKey}, "")
}