Initial commit
This commit is contained in:
10
models/application.go
Normal file
10
models/application.go
Normal 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
12
models/auth.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"oc-auth/conf"
|
||||
)
|
||||
|
||||
func init() {
|
||||
c := conf.GetConfig()
|
||||
// configure storage
|
||||
fmt.Println(c.NatsUrl)
|
||||
}
|
||||
Reference in New Issue
Block a user