2019-12-13 18:08:26 +00:00
|
|
|
package model
|
|
|
|
|
2019-12-17 20:17:25 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
2019-12-13 18:08:26 +00:00
|
|
|
|
|
|
|
var (
|
|
|
|
ErrAppNotFound = errors.New("app not found")
|
|
|
|
)
|
|
|
|
|
|
|
|
type App struct {
|
2019-12-21 09:56:18 +00:00
|
|
|
InstanceDomain string `json:"instance_domain"`
|
|
|
|
InstanceURL string `json:"instance_url"`
|
|
|
|
ClientID string `json:"client_id"`
|
|
|
|
ClientSecret string `json:"client_secret"`
|
2019-12-13 18:08:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type AppRepository interface {
|
|
|
|
Add(app App) (err error)
|
2019-12-17 20:17:25 +00:00
|
|
|
Get(instanceDomain string) (app App, err error)
|
|
|
|
}
|