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

13 lines
302 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"
"qteam/app/services"
)
func GetGenerateSm2Key(c *gin.Context) {
PublicKey, privateKey, _ := services.GenerateSM2Key()
controllers.Success(c, map[string]string{"PublicKey": PublicKey, "privateKey": privateKey}, "")
}