mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-09 21:38:45 +00:00
Add account {,un}subscribe
This commit is contained in:
parent
ccdb5ef051
commit
04af1b93dc
6 changed files with 127 additions and 8 deletions
|
@ -52,6 +52,8 @@ type Service interface {
|
|||
UnMute(ctx context.Context, c *model.Client, id string) (err error)
|
||||
Block(ctx context.Context, c *model.Client, id string) (err error)
|
||||
UnBlock(ctx context.Context, c *model.Client, id string) (err error)
|
||||
Subscribe(ctx context.Context, c *model.Client, id string) (err error)
|
||||
UnSubscribe(ctx context.Context, c *model.Client, id string) (err error)
|
||||
SaveSettings(ctx context.Context, c *model.Client, settings *model.Settings) (err error)
|
||||
MuteConversation(ctx context.Context, c *model.Client, id string) (err error)
|
||||
UnMuteConversation(ctx context.Context, c *model.Client, id string) (err error)
|
||||
|
@ -839,6 +841,16 @@ func (svc *service) UnBlock(ctx context.Context, c *model.Client, id string) (er
|
|||
return
|
||||
}
|
||||
|
||||
func (svc *service) Subscribe(ctx context.Context, c *model.Client, id string) (err error) {
|
||||
_, err = c.Subscribe(ctx, id)
|
||||
return
|
||||
}
|
||||
|
||||
func (svc *service) UnSubscribe(ctx context.Context, c *model.Client, id string) (err error) {
|
||||
_, err = c.UnSubscribe(ctx, id)
|
||||
return
|
||||
}
|
||||
|
||||
func (svc *service) SaveSettings(ctx context.Context, c *model.Client,
|
||||
settings *model.Settings) (err error) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue