12345678910111213141516171819 |
- package routers
- import (
- "Cold_Api/conf"
- "Cold_Api/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- ns := beego.NewNamespace(conf.Version,
- beego.NSRouter("/Bulletin/AddBulletin", &controllers.BulletinController{}, "*:AddBulletin"),
- beego.NSRouter("/Bulletin/GetBulletinById", &controllers.BulletinController{}, "*:GetBulletinById"),
- beego.NSRouter("/Bulletin/DeleteBulletin", &controllers.BulletinController{}, "*:DeleteBulletin"),
- beego.NSRouter("/Bulletin/UpdateBulletin", &controllers.BulletinController{}, "*:UpdateBulletin"),
- beego.NSRouter("/Bulletin/GetBulletinList", &controllers.BulletinController{}, "*:GetBulletinsList"),
- beego.NSRouter("/Bulletin/IsReadBulletin", &controllers.BulletinController{}, "*:IsReadBulletin"),
- )
- beego.AddNamespace(ns)
- }
|