package routers import ( "github.com/astaxie/beego" "wuyebaoxiuapi/controllers/backgroundc" "wuyebaoxiuapi/controllers/frontc" ) func init() { // 默认登录 beego.Router("/", &backgroundc.ApiDocController{}, "*:Index") beego.Router("/login", &backgroundc.LoginController{}, "*:LoginIn") beego.Router("/login_out", &backgroundc.LoginController{}, "*:LoginOut") beego.Router("/no_auth", &backgroundc.LoginController{}, "*:NoAuth") beego.Router("/home", &backgroundc.HomeController{}, "*:Index") beego.Router("/home/start", &backgroundc.HomeController{}, "*:Start") beego.AutoRouter(&backgroundc.ApiController{}) beego.AutoRouter(&backgroundc.ApiSourceController{}) beego.AutoRouter(&backgroundc.ApiPublicController{}) beego.AutoRouter(&backgroundc.TemplateController{}) beego.AutoRouter(&backgroundc.ApiDocController{}) // beego.AutoRouter(&controllers.ApiMonitorController{}) beego.AutoRouter(&backgroundc.EnvController{}) beego.AutoRouter(&backgroundc.CodeController{}) beego.AutoRouter(&backgroundc.GroupController{}) beego.AutoRouter(&backgroundc.AuthController{}) beego.AutoRouter(&backgroundc.RoleController{}) beego.AutoRouter(&backgroundc.AdminController{}) beego.AutoRouter(&backgroundc.UserController{}) beego.Router("/uploadimg", &backgroundc.UploadController{}, "*:UploadImage") beego.Router("/propertynotice/edit", &backgroundc.PropertyNoticeController{}, "*:Edit") beego.Router("/propertynotice/add", &backgroundc.PropertyNoticeController{}, "*:Add") beego.Router("/propertynotice/index", &backgroundc.PropertyNoticeController{}, "*:Index") beego.Router("/propertynotice/del", &backgroundc.PropertyNoticeController{}, "*:Del") // 用户登录 beego.Router("/user/login", &frontc.LoginController{}, "*:Login") // 更新密码 beego.Router("/user/updatePassword", &frontc.UserController{}, "*:UpdatePassword") // 更新头像 beego.Router("/user/updateAvatarUrl", &frontc.UserController{}, "*:UpdateAvatarUrl") // 更新学校 beego.Router("/user/updateSchool", &frontc.UserController{}, "*:UpdateSchool") // 更新日常地址 beego.Router("/user/updateDailyAddress", &frontc.UserController{}, "*:UpdateDailyAddress") // 更新手机号码 beego.Router("/user/updatepPhone", &frontc.UserController{}, "*:UpdatepPhone") // 报修 beego.Router("/repair", &frontc.RepairController{}, "*:Repair") // 报修用户报修数量 beego.Router("/userRepairCount", &frontc.UserRepairController{}, "*:UserRepairCount") // 管理员报修数量 beego.Router("/adminRepairCount", &frontc.UserRepairController{}, "*:AdminRepairCount") // 维修工人 beego.Router("/repairWorkers", &frontc.UserRepairController{}, "*:RepairWorkers") // 管理员待维修列表 beego.Router("/adminWRepairs", &frontc.UserRepairController{}, "*:AdminWRepairs") // 管理员已维修列表 beego.Router("/adminHRepairs", &frontc.UserRepairController{}, "*:AdminHRepairs") // 报修用户报修列表 beego.Router("/repairUserRepairs", &frontc.UserRepairController{}, "*:RepairUserRepairs") // 通知公告列表 beego.Router("/pn/list", &frontc.PropertyNoticeController{}, "*:List") // 上传图片 beego.Router("/uploadImage", &frontc.BaseController{}, "*:UploadImage") // 维修用户待维修列表 beego.Router("/serviceUserWRepairs", &frontc.UserRepairController{}, "*:ServiceUserWRepairs") // 维修用户待维修列表 beego.Router("/serviceUserHRepairs", &frontc.UserRepairController{}, "*:ServiceUserHRepairs") // 指派维修工人列表 beego.Router("/assignRepairWorkers", &frontc.UserRepairController{}, "*:AssignRepairWorkers") // 指派维修任务 beego.Router("/assignRepairTask", &frontc.UserRepairController{}, "*:AssignRepairTask") // 维修用户维修数量 beego.Router("/repairUserRepairCount", &frontc.UserRepairController{}, "*:RepairUserRepairCount") // 确认维修 beego.Router("/confirmRepair", &frontc.UserRepairController{}, "*:ConfirmRepair") }