Initial commit

This commit is contained in:
ycc
2024-07-26 13:46:05 +02:00
commit 6f4a51e28e
35 changed files with 1181 additions and 0 deletions

10
models/application.go Normal file
View File

@@ -0,0 +1,10 @@
package models
// OpenId application
type Application struct {
ClientId string `json:"client_id,omitempty"`
ClientName string `json:"client_name,omitempty"`
ClientSecret string `json:"client_secret,omitempty"`
AccessToken string `json:"access_token,omitempty"`
CallbackUrl string `json:"callback_url,omitempty"`
}

12
models/auth.go Normal file
View File

@@ -0,0 +1,12 @@
package models
import (
"fmt"
"oc-auth/conf"
)
func init() {
c := conf.GetConfig()
// configure storage
fmt.Println(c.NatsUrl)
}