feat:完善项目管理,增加网站首页接口信息

This commit is contained in:
henry
2021-12-15 14:31:14 +08:00
parent 3c55143278
commit ba62a25e4b
21 changed files with 471 additions and 50 deletions

View File

@ -0,0 +1 @@
package api

View File

@ -1,7 +1,14 @@
package api
import (
"SciencesServer/app/api/website/controller"
"SciencesServer/app/basic/api"
"github.com/gin-gonic/gin"
)
type Index struct{}
func (*Index) Instance() {
func (*Index) Instance(c *gin.Context) {
data, err := controller.NewIndex()(nil, "").Instance()
api.APIResponse(err, data)(c)
}