feat:完善网站信息

This commit is contained in:
henry
2021-12-22 14:11:14 +08:00
parent b0a9ef3569
commit 332f67d1c1
14 changed files with 637 additions and 28 deletions

View File

@ -15,6 +15,13 @@ func registerAPI(app *gin.Engine) {
g := app.Group(apiPrefix)
v1 := g.Group("/v1")
esV1 := v1.Group("/es")
{
_api := new(api2.ES)
esV1.POST("/create", _api.Create)
esV1.POST("/search", _api.Search)
}
// Index 首页信息管理
indexV1 := v1.Group("/index")
{
@ -59,6 +66,15 @@ func registerAPI(app *gin.Engine) {
serviceV1.GET("/innovate/kind", _api.InnovateKind)
serviceV1.POST("/innovate/detail", _api.InnovateDetail)
}
//Technology 技术信息管理
technologyV1 := v1.Group("/technology")
{
_api := new(api2.Technology)
technologyV1.POST("/patent", _api.Patent)
technologyV1.POST("/patent/detail", _api.PatentDetail)
technologyV1.POST("/demand", _api.Demand)
technologyV1.POST("/demand/detail", _api.DemandDetail)
}
// About 关于我们管理
aboutV1 := v1.Group("/about")
{