123456789101112131415161718192021222324 |
- package routers
- import (
- "Cold_GoodsOrder/conf"
- "Cold_GoodsOrder/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- // 订单管理
- ns := beego.NewNamespace(conf.Version,
- beego.NSNamespace("/GoodsOrder",
- beego.NSRouter("List", &controllers.GoodsOrderController{}, "*:GoodsOrder_List"), // 订单列表
- beego.NSRouter("Get", &controllers.GoodsOrderController{}, "*:GoodsOrder_Get"), // 获取订单
- beego.NSRouter("Add", &controllers.GoodsOrderController{}, "*:GoodsOrder_Add"), // 添加订单
- beego.NSRouter("Edit", &controllers.GoodsOrderController{}, "*:GoodsOrder_Edit"), // 编辑订单
- beego.NSRouter("Del", &controllers.GoodsOrderController{}, "*:GoodsOrder_Del"), // 删除订单
- beego.NSRouter("PDF", &controllers.GoodsOrderController{}, "*:GoodsOrder_PDF"), // 订单pdf
- ),
- )
- beego.AddNamespace(ns)
- }
|