Property.go 602 B

1234567891011121314151617
  1. package routers
  2. import (
  3. "ERP_storage/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. iotCard := beego.NewNamespace("/IotCard",
  8. beego.NSRouter("/List", &controllers.PropertyController{}, "*:IotCard_List"), // 物联网卡列表
  9. beego.NSRouter("/Add", &controllers.PropertyController{}, "*:IotCard_Add"), // 添加物联网卡
  10. beego.NSRouter("/Edit", &controllers.PropertyController{}, "*:IotCard_Edit"), // 编辑物联网卡
  11. beego.NSRouter("/Del", &controllers.PropertyController{}, "*:IotCard_Del"), // 删除物联网卡
  12. )
  13. beego.AddNamespace(iotCard)
  14. }