123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- package routers
-
- import (
- "github.com/astaxie/beego"
- "github.com/astaxie/beego/context/param"
- )
-
- func init() {
-
- beego.GlobalControllerRouter["annual-lottery/controllers:BaseController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:BaseController"],
- beego.ControllerComments{
- Method: "UploadFile",
- Router: `/file`,
- AllowHTTPMethods: []string{"post"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "Draw",
- Router: `/draw`,
- AllowHTTPMethods: []string{"post"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "ExportWinners",
- Router: `/excel/winner`,
- AllowHTTPMethods: []string{"get"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "PrizeList",
- Router: `/prize`,
- AllowHTTPMethods: []string{"get"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "PrizeEdit",
- Router: `/prize/?:id`,
- AllowHTTPMethods: []string{"post","put","delete"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "PrizeSettingList",
- Router: `/setting/prize`,
- AllowHTTPMethods: []string{"get"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "PrizeSetting",
- Router: `/setting/prize/?:id`,
- AllowHTTPMethods: []string{"post","put","delete"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "UserList",
- Router: `/user`,
- AllowHTTPMethods: []string{"get"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "WinnerList",
- Router: `/winner`,
- AllowHTTPMethods: []string{"get"},
- MethodParams: param.Make(),
- Params: nil})
-
- beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"] = append(beego.GlobalControllerRouter["annual-lottery/controllers:LotteryController"],
- beego.ControllerComments{
- Method: "CancelWinner",
- Router: `/winner/:uid`,
- AllowHTTPMethods: []string{"delete"},
- MethodParams: param.Make(),
- Params: nil})
-
- }
|