|
|
|
@ -935,3 +935,28 @@ func generateSchedule(startDate time.Time, numDays int) []Shift { |
|
|
|
func (a *ApiMethod) JiaoZhengTableWord(c *gin.Context) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
* |
|
|
|
@ 作者: 秦东 |
|
|
|
@ 时间: 2026-01-26 14:25:42 |
|
|
|
@ 功能: SM4解密函数 |
|
|
|
*/ |
|
|
|
func (a *ApiMethod) Sm4JiemiVal(c *gin.Context) { |
|
|
|
var requestData JimiToSm4 |
|
|
|
err := c.ShouldBindJSON(&requestData) |
|
|
|
if requestData.AuthKey == "" { |
|
|
|
publicmethod.ResultNoJiami(100, err, c) |
|
|
|
return |
|
|
|
} |
|
|
|
if requestData.Data == "" { |
|
|
|
publicmethod.ResultNoJiami(100, err, c) |
|
|
|
return |
|
|
|
} |
|
|
|
jimi, err := publicmethod.SM4DecryptNew(requestData.Data, requestData.AuthKey) |
|
|
|
fmt.Printf("----------------->%v---------->%v\n\n", err, string(jimi)) |
|
|
|
var sendMap map[string]interface{} |
|
|
|
err = json.Unmarshal(jimi, &sendMap) |
|
|
|
fmt.Printf("----------------->%v--------->%v\n\n", err, sendMap) |
|
|
|
publicmethod.ResultNoJiami(0, sendMap, c) |
|
|
|
} |
|
|
|
|