mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-02 10:04:22 +00:00
Refactor everything
This commit is contained in:
parent
57d2a4288b
commit
2af37d4778
26 changed files with 1320 additions and 1361 deletions
|
@ -15,7 +15,7 @@ type App struct {
|
|||
ClientSecret string `json:"client_secret"`
|
||||
}
|
||||
|
||||
type AppRepository interface {
|
||||
type AppRepo interface {
|
||||
Add(app App) (err error)
|
||||
Get(instanceDomain string) (app App, err error)
|
||||
}
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
package model
|
||||
|
||||
import "mastodon"
|
||||
import (
|
||||
"io"
|
||||
|
||||
"mastodon"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
*mastodon.Client
|
||||
Writer io.Writer
|
||||
Session Session
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ type Session struct {
|
|||
Settings Settings `json:"settings"`
|
||||
}
|
||||
|
||||
type SessionRepository interface {
|
||||
type SessionRepo interface {
|
||||
Add(session Session) (err error)
|
||||
Get(sessionID string) (session Session, err error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue