bulletin.go 804 B

12345678910111213141516171819
  1. package routers
  2. import (
  3. "Cold_Api/conf"
  4. "Cold_Api/controllers"
  5. beego "github.com/beego/beego/v2/server/web"
  6. )
  7. func init() {
  8. ns := beego.NewNamespace(conf.Version,
  9. beego.NSRouter("/Bulletin/AddBulletin", &controllers.BulletinController{}, "*:AddBulletin"),
  10. beego.NSRouter("/Bulletin/GetBulletinById", &controllers.BulletinController{}, "*:GetBulletinById"),
  11. beego.NSRouter("/Bulletin/DeleteBulletin", &controllers.BulletinController{}, "*:DeleteBulletin"),
  12. beego.NSRouter("/Bulletin/UpdateBulletin", &controllers.BulletinController{}, "*:UpdateBulletin"),
  13. beego.NSRouter("/Bulletin/GetBulletinList", &controllers.BulletinController{}, "*:GetBulletinsList"),
  14. beego.NSRouter("/Bulletin/IsReadBulletin", &controllers.BulletinController{}, "*:IsReadBulletin"),
  15. )
  16. beego.AddNamespace(ns)
  17. }