提交 80c31620 编写于 作者: U Ulric Qin

code refactor

上级 a8f7f6a0
......@@ -11,7 +11,7 @@ import (
func straPost(c *gin.Context) {
username := loginUsername(c)
stra := new(models.Stra)
errors.Dangerous(c.ShouldBind(stra))
errors.Dangerous(c.ShouldBindJSON(stra))
can, err := models.UsernameCandoNodeOp(username, "mon_stra_create", stra.Nid)
errors.Dangerous(err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册