增加casdoor的接口
This commit is contained in:
32
service/casdoor.go
Normal file
32
service/casdoor.go
Normal file
@@ -0,0 +1,32 @@
|
||||
// ================================================================================
|
||||
// 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
|
||||
}
|
||||
@@ -53,6 +53,7 @@ type (
|
||||
// @Description: 保存游戏活动数据
|
||||
// @receiver s *sGameAct: 游戏活动服务结构体指针
|
||||
// @return err error: 返回错误信息
|
||||
// SavesV2 保存游戏活动数据
|
||||
SavesV2() (err error)
|
||||
// SaveV2 保存游戏活动数据
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user