beego 路由传参数
    ## How to pass parameters in Beego routes.
    Beego is a popular web framework for Go that provides a flexible and easy-to-use routing system. One of the key features of Beego's routing system is the ability to pass parameters from the URL to the controller. This allows you to create dynamic routes that can handle different types of requests.
    There are several different ways to pass parameters in Beego routes. The most common way is to use URL patterns. URL patterns are strings that define the structure of the URL and the parameters that can be passed to the controller.
    For example, the following URL pattern matches any URL that starts with /articles and has an integer parameter called id:
    /articles/:id.
    When a request is made to a URL that matches this pattern, the id parameter will be passed to the controller. The controller can then use this parameter to retrieve the corresponding article from the database.
    Another way to pass parameters in Beego routes is to use query strings. Query strings are appended to the end of the URL and contain a list of key-value pairs.
    For example, the following URL contains a query string with two parameters, page and size:
    /articles?page=1&size=10。
    When a request is made to this URL, the page and size parameters will be passed to the controller. The controller can then use these parameters to retrieve the corresponding articles from the database.
    In addition to URL patterns and query strings, it is also possible to pass parameters in Beego routes using form data. Form data is sent to the server in the body of the HTTP requ
est.
    For example, the following form data contains two parameters, username and password:
    username=foo&password=bar.
    When a request is made to a URL with form data, the form data will be passed to the controller. The controller can then use this data to authenticate the user.
react router路由传参    ## 如何在 Beego 路由中传递参数。
    Beego 是一个流行的 Go Web 框架,它提供了一个灵活且易于使用的路由系统。Beego 路由系统的一个关键特性是能够将参数从 URL 传递到控制器。这允许你创建可以处理不同类型请求的动态路由。
    有几种不同的方式可以在 Beego 路由中传递参数。最常见的方法是使用 URL 模式。URL 模式是定义 URL 结构和可以传递到控制器的参数的字符串。
    例如,以下 URL 模式匹配任何以 /articles 开头且有一个名为 id 的整数参数的 URL:
    /articles/:id.
    当对与该模式匹配的 URL 发出请求时,id 参数将被传递到控制器。然后,控制器可以使用此参数从数据库中检索相应的文章。
    在 Beego 路由中传递参数的另一种方法是使用查询字符串。查询字符串附加到 URL 末尾,并包含一个键值对列表。
    例如,以下 URL 包含一个带有 page 和 size 两个参数的查询字符串:
    /articles?page=1&size=10。
    当对该 URL 发出请求时,page 和 size 参数将被传递到控制器。然后,控制器可以使用这些参数从数据库中检索相应的文章。
    除了 URL 模式和查询字符串之外,还可以在 Beego 路由中使用表单数据传递参数。表单数据在 HTTP 请求的正文中发送到服务器。
    例如,以下表单数据包含 username 和 password 两个参数:
    username=foo&password=bar.
    当对带有表单数据的 URL 发出请求时,表单数据将被传递到控制器。然后,控制器可以使用此数据对用户进行身份验证。