zhamao-framework/assets/js/49.a9bb32f7.js
2024-09-19 08:29:13 +00:00

1 line
2.2 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{760:function(t,_,v){"use strict";v.r(_);var r=v(84),a=Object(r.a)({},(function(){var t=this,_=t._self._c;return _("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[_("h1",{attrs:{id:"路由事件"}},[_("a",{staticClass:"header-anchor",attrs:{href:"#路由事件"}},[t._v("#")]),t._v(" 路由事件")]),t._v(" "),_("aside",[t._v("\n🛰 此页面下的所有注解命名空间为 `ZM\\Annotation\\Http`\n")]),t._v(" "),_("h2",{attrs:{id:"controller"}},[_("a",{staticClass:"header-anchor",attrs:{href:"#controller"}},[t._v("#")]),t._v(" Controller")]),t._v(" "),_("p",[t._v("对同一类下的路由进行修饰,只可在类上使用。")]),t._v(" "),_("table",[_("thead",[_("tr",[_("th",[t._v("参数名称")]),t._v(" "),_("th",[t._v("允许值")]),t._v(" "),_("th",[t._v("用途")]),t._v(" "),_("th",[t._v("默认")])])]),t._v(" "),_("tbody",[_("tr",[_("td",[t._v("prefix")]),t._v(" "),_("td",[t._v("string")]),t._v(" "),_("td",[t._v("路由前缀,应用到类下的所有路由")]),t._v(" "),_("td",[t._v("必填")])])])]),t._v(" "),_("h2",{attrs:{id:"route"}},[_("a",{staticClass:"header-anchor",attrs:{href:"#route"}},[t._v("#")]),t._v(" Route")]),t._v(" "),_("p",[t._v("路由事件,当对应的路由收到请求时触发。")]),t._v(" "),_("table",[_("thead",[_("tr",[_("th",[t._v("参数名称")]),t._v(" "),_("th",[t._v("允许值")]),t._v(" "),_("th",[t._v("用途")]),t._v(" "),_("th",[t._v("默认")])])]),t._v(" "),_("tbody",[_("tr",[_("td",[t._v("route")]),t._v(" "),_("td",[t._v("string")]),t._v(" "),_("td",[t._v("路由")]),t._v(" "),_("td",[t._v("必填")])]),t._v(" "),_("tr",[_("td",[t._v("name")]),t._v(" "),_("td",[t._v("string")]),t._v(" "),_("td",[t._v("路由名称")]),t._v(" "),_("td",[t._v("“”")])]),t._v(" "),_("tr",[_("td",[t._v("request_method")]),t._v(" "),_("td",[t._v("array"),_("string")],1),t._v(" "),_("td",[t._v("允许的请求方法")]),t._v(" "),_("td",[t._v("[GET, POST]")])]),t._v(" "),_("tr",[_("td",[t._v("params")]),t._v(" "),_("td",[t._v("array<string, string>")]),t._v(" "),_("td",[t._v("路由参数")]),t._v(" "),_("td",[t._v("[]")])])])])])}),[],!1,null,null,null);_.default=a.exports}}]);