You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
711 B
33 lines
711 B
package router
|
|
|
|
import (
|
|
"gitea.baoapi.com/root/stu_uuos/web/handler"
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
/*
|
|
"gitea.241210.com/operate/uuos/web/handler"
|
|
ginmw "gitea.241210.com/operate/uuos/web/middleware"
|
|
*/)
|
|
|
|
func Init() *gin.Engine {
|
|
gin.SetMode(gin.ReleaseMode)
|
|
router := gin.New()
|
|
router.Use(gin.Recovery())
|
|
/*
|
|
router.Use(ginmw.LoggerWithMico())
|
|
router.Use(ginmw.Cors())
|
|
router.NoMethod(handler.NoMethod)
|
|
router.NoRoute(handler.NoRoute)
|
|
router.Any("/", handler.Home)
|
|
*/
|
|
router.StaticFS("/export", http.Dir("./export/"))
|
|
|
|
rb := router.Group("/")
|
|
{
|
|
rb.GET("", handler.Hello)
|
|
}
|
|
//获取企业微信人员
|
|
router.POST("/hello", handler.Hello) //新建群聊
|
|
|
|
return router
|
|
}
|