go-common/app/interface/main/app-resource/http/audit.go

23 lines
466 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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))
}