| | |
| | | r.StaticFS(conf.LocalConf.StorePath, http.Dir(conf.LocalConf.StorePath)) // 为用户头像和文件提供静态地址 |
| | | r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) |
| | | |
| | | urlPrefix := "/api-s/v1" |
| | | urlPrefix := "/api-jl/v1" |
| | | |
| | | // 组织管理 |
| | | departmentController := new(controllers.DepartmentController) |
| | |
| | | organizeAPI.DELETE("department/:id", departmentController.Delete) // 删除部门 |
| | | } |
| | | |
| | | // 词典管理 |
| | | DictController := new(controllers.DictController) |
| | | systemApi := r.Group(urlPrefix + "/system") |
| | | { |
| | | systemApi.GET("dict", DictController.List) // 获取词典列表 |
| | | systemApi.POST("dict", DictController.Add) // 新增词典 |
| | | systemApi.PUT("dict", DictController.Update) // 修改词典 |
| | | systemApi.DELETE("dict/:id", DictController.Delete) // 删除词典 |
| | | } |
| | | |
| | | return r |
| | | } |