finish up project

This commit is contained in:
marvzhang
2020-02-02 13:29:56 +08:00
parent 9d5d0253a8
commit 024f9ac3b2
4 changed files with 24 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import (
)
// 新增
func PostVariable(c *gin.Context) {
func PutVariable(c *gin.Context) {
var variable model.Variable
if err := c.ShouldBindJSON(&variable); err != nil {
HandleError(http.StatusBadRequest, c, err)
@@ -22,7 +22,7 @@ func PostVariable(c *gin.Context) {
}
// 修改
func PutVariable(c *gin.Context) {
func PostVariable(c *gin.Context) {
var id = c.Param("id")
var variable model.Variable
if err := c.ShouldBindJSON(&variable); err != nil {