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.
20 lines
560 B
20 lines
560 B
package empower
|
|
|
|
import (
|
|
"key_performance_indicators/api/empower"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
//OAuth 2.0 授权
|
|
|
|
func (e *EmpowerApiRouter) RouterGroup(router *gin.RouterGroup) {
|
|
apiRouter := router.Group("empower")
|
|
var methodBinding = empower.AppApiEntry.EmpowerApi
|
|
{
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
apiRouter.POST("givemetoken", methodBinding.GainToken) //获取令牌
|
|
apiRouter.POST("encryption", methodBinding.Encryption) //加密验证
|
|
}
|
|
}
|
|
|