Files
utility_go/service/casdoor.go
2025-09-18 11:04:27 +08:00

33 lines
828 B
Go

// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"github.com/casdoor/casdoor-go-sdk/casdoorsdk"
)
type (
ICasdoor interface {
Load(endpoint string, clientId string, clientSecret string, certificate string, organizationName string, applicationName string)
New() *casdoorsdk.Client
}
)
var (
localCasdoor ICasdoor
)
func Casdoor() ICasdoor {
if localCasdoor == nil {
panic("implement not found for interface ICasdoor, forgot register?")
}
return localCasdoor
}
func RegisterCasdoor(i ICasdoor) {
localCasdoor = i
}