|
|
@@ -7,22 +7,12 @@ import ( |
|
|
|
"applet/app/db" |
|
|
|
"applet/app/e" |
|
|
|
"applet/app/enum" |
|
|
|
"fmt" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
) |
|
|
|
|
|
|
|
func AesDecrypt(c *gin.Context) { |
|
|
|
var arg interface{} |
|
|
|
err := c.ShouldBindJSON(&arg) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_INVALID_ARGS, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
fmt.Println(">>>>>>>>>>arg<<<<<<<<<<<<<", arg) |
|
|
|
c.BindJSON(arg) |
|
|
|
|
|
|
|
var req md.CurlAesDecrypt |
|
|
|
err = c.ShouldBindJSON(&req) |
|
|
|
err := c.ShouldBindJSON(&req) |
|
|
|
if err != nil { |
|
|
|
err = validate.HandleValidateErr(err) |
|
|
|
err1 := err.(e.E) |
|
|
|