我正在尝试使用“名称”参数过滤我的寄存器。我使这个处理函数: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)
我正在尝试使用“名称”参数过滤我的寄存器。我使这个处理函数: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)