添加快递渠道

This commit is contained in:
邹宗楠
2022-06-24 17:33:26 +08:00
parent 24be6bcab3
commit 09fd5e8762
6 changed files with 112 additions and 1 deletions

View File

@@ -1015,4 +1015,13 @@ func init() {
Filters: nil,
Params: nil})
// 快递运单
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:QBiDaExpressController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:QBiDaExpressController"],
beego.ControllerComments{
Method: "QueryExpressPrice",
Router: "/QueryExpressPrice",
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
}

View File

@@ -61,6 +61,12 @@ func init() {
&controllers.UnionController{},
),
),
// QBiDa
web.NSNamespace("/express",
web.NSInclude(
&controllers.QBiDaExpressController{},
),
),
)
web.AddNamespace(ns)
web.AutoRouter(&controllers.WXPayController{})