JM-WechatMini/router/system/sys_authority_btn.go

20 lines
693 B
Go
Raw Permalink Normal View History

2023-11-02 04:34:46 +08:00
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)
}
}