20 lines
693 B
Go
20 lines
693 B
Go
package system
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
v1 "miniapp/api/v1"
|
|
)
|
|
|
|
type AuthorityBtnRouter struct{}
|
|
|
|
func (s *AuthorityBtnRouter) InitAuthorityBtnRouterRouter(Router *gin.RouterGroup) {
|
|
//authorityRouter := Router.Group("authorityBtn").Use(middleware.OperationRecord())
|
|
authorityRouterWithoutRecord := Router.Group("authorityBtn")
|
|
authorityBtnApi := v1.ApiGroupApp.SystemApiGroup.AuthorityBtnApi
|
|
{
|
|
authorityRouterWithoutRecord.POST("getAuthorityBtn", authorityBtnApi.GetAuthorityBtn)
|
|
authorityRouterWithoutRecord.POST("setAuthorityBtn", authorityBtnApi.SetAuthorityBtn)
|
|
authorityRouterWithoutRecord.POST("canRemoveAuthorityBtn", authorityBtnApi.CanRemoveAuthorityBtn)
|
|
}
|
|
}
|