mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-22 20:11:29 +00:00
20 lines
354 B
Go
20 lines
354 B
Go
|
package model
|
||
|
|
||
|
import "errors"
|
||
|
|
||
|
var (
|
||
|
ErrAppNotFound = errors.New("app not found")
|
||
|
)
|
||
|
|
||
|
type App struct {
|
||
|
InstanceURL string
|
||
|
ClientID string
|
||
|
ClientSecret string
|
||
|
}
|
||
|
|
||
|
type AppRepository interface {
|
||
|
Add(app App) (err error)
|
||
|
Update(instanceURL string, clientID string, clientSecret string) (err error)
|
||
|
Get(instanceURL string) (app App, err error)
|
||
|
}
|