mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-02 10:04:22 +00:00
Use a custom client for settings
This commit is contained in:
parent
e73eb1162a
commit
3af4361927
6 changed files with 74 additions and 59 deletions
8
model/client.go
Normal file
8
model/client.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package model
|
||||
|
||||
import "mastodon"
|
||||
|
||||
type Client struct {
|
||||
*mastodon.Client
|
||||
Session Session
|
||||
}
|
|
@ -9,9 +9,10 @@ var (
|
|||
)
|
||||
|
||||
type Session struct {
|
||||
ID string `json:"id"`
|
||||
InstanceDomain string `json:"instance_domain"`
|
||||
AccessToken string `json:"access_token"`
|
||||
ID string `json:"id"`
|
||||
InstanceDomain string `json:"instance_domain"`
|
||||
AccessToken string `json:"access_token"`
|
||||
Settings Settings `json:"settings"`
|
||||
}
|
||||
|
||||
type SessionRepository interface {
|
||||
|
|
4
model/settings.go
Normal file
4
model/settings.go
Normal file
|
@ -0,0 +1,4 @@
|
|||
package model
|
||||
|
||||
type Settings struct {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue