草庐IT

funcionaries

全部标签

go - 在 'Name= ?' 附近使用的正确语法

我正在尝试使用“名称”参数过滤我的寄存器。我使这个处理函数:funcGetFuncionaries(whttp.ResponseWriter,r*http.Request){varfmodel.Funcionaryvartutil.Appvarddb.DBerr:=d.Connection()db:=d.DBdeferdb.Close()Id,_:=strconv.Atoi(r.FormValue("Id"))Name:=r.FormValue("Name")f.Id=int64(Id)f.Name=Namefuncionaries,err:=f.GetFuncionaries(db)

go - 在 'Name= ?' 附近使用的正确语法

我正在尝试使用“名称”参数过滤我的寄存器。我使这个处理函数:funcGetFuncionaries(whttp.ResponseWriter,r*http.Request){varfmodel.Funcionaryvartutil.Appvarddb.DBerr:=d.Connection()db:=d.DBdeferdb.Close()Id,_:=strconv.Atoi(r.FormValue("Id"))Name:=r.FormValue("Name")f.Id=int64(Id)f.Name=Namefuncionaries,err:=f.GetFuncionaries(db)