go-common/app/interface/main/app-resource/http/audit.go
2019-04-22 18:49:16 +08:00

23 lines
466 B
Go

package http
import (
"strconv"
"go-common/library/ecode"
"go-common/library/log"
bm "go-common/library/net/http/blademaster"
)
func audit(c *bm.Context) {
params := c.Request.Form
buildStr := params.Get("build")
mobiApp := params.Get("mobi_app")
build, err := strconv.Atoi(buildStr)
if err != nil {
log.Error("stronv.ParseInt(%s) error(%v)", buildStr, err)
c.JSON(nil, ecode.RequestErr)
return
}
c.JSON(nil, auditSvc.Audit(c, mobiApp, build))
}