mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
22 lines
643 B
Go
22 lines
643 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type AccountRouter struct {
|
|
}
|
|
|
|
func (receiver *AccountRouter) InitAccountRouter(group *gin.RouterGroup) {
|
|
api := api.APIGroupAPP.WafAccountApi
|
|
router := group.Group("")
|
|
router.POST("/samwaf/account/list", api.GetListApi)
|
|
router.GET("/samwaf/account/detail", api.GetDetailApi)
|
|
router.POST("/samwaf/account/add", api.AddApi)
|
|
router.GET("/samwaf/account/del", api.DelAccountApi)
|
|
router.POST("/samwaf/account/edit", api.ModifyAccountApi)
|
|
router.POST("/samwaf/account/resetpwd", api.ResetAccountPwdApi)
|
|
router.POST("/samwaf/account/resetotp", api.ResetAccountOTPApi)
|
|
}
|