feat:完善项目

This commit is contained in:
henry
2022-01-15 09:00:47 +08:00
parent 9a41d7ff12
commit 048d116b05
9 changed files with 67 additions and 35 deletions

View File

@ -165,7 +165,7 @@ func registerAdminAPI(app *gin.Engine) {
_config.GET("/identity", _api.Identity)
_config.GET("/industry", _api.Industry)
_api2 := new(api1.Config)
_config.POST("/", _api2.Index)
_config.POST("", _api2.Index)
_config.POST("/add", _api2.Add)
_config.POST("/edit", _api2.Edit)
}
@ -237,11 +237,6 @@ func registerAdminAPI(app *gin.Engine) {
menu.POST("/status", _api.Status)
menu.POST("/delete", _api.Delete)
}
// Config 配置管理
//config := v1.Group("/config")
//{
//
//}
// Auth 权限管理
auth := v1.Group("/auth")
{
@ -309,11 +304,12 @@ func registerAdminAPI(app *gin.Engine) {
technology.POST("/patent/detail", _api.PatentDetail)
technology.POST("/patent/add", _api.PatentForm)
technology.POST("/patent/edit", _api.PatentForm)
technology.POST("/patent/bind", _api.PatentBind)
technology.POST("/patent/delete", _api.PatentDelete)
technology.GET("/patent/ipc", _api.PatentIPC)
technology.POST("/patent/add", _api.PatentIPCForm)
technology.POST("/patent/edit", _api.PatentIPCForm)
technology.POST("/patent/delete", _api.PatentIPCDelete)
technology.POST("/patent/ipc/add", _api.PatentIPCForm)
technology.POST("/patent/ipc/edit", _api.PatentIPCForm)
technology.POST("/patent/ipc/delete", _api.PatentIPCDelete)
}
// Activity 活动管理
activity := v1.Group("/activity")