mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-16 12:03:02 +00:00
22 lines
402 B
Go
22 lines
402 B
Go
package model
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
ErrAppNotFound = errors.New("app not found")
|
|
)
|
|
|
|
type App struct {
|
|
InstanceDomain string `json:"instance_domain"`
|
|
InstanceURL string `json:"instance_url"`
|
|
ClientID string `json:"client_id"`
|
|
ClientSecret string `json:"client_secret"`
|
|
}
|
|
|
|
type AppRepository interface {
|
|
Add(app App) (err error)
|
|
Get(instanceDomain string) (app App, err error)
|
|
}
|