mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
Adjusted capabilities
This commit is contained in:
parent
df99e56ee2
commit
3e32a7715a
@ -38,19 +38,6 @@ func (sys *System) SetLogger(logger *zap.SugaredLogger) {
|
|||||||
func (sys *System) GetCapabilities() []adapter.Capability {
|
func (sys *System) GetCapabilities() []adapter.Capability {
|
||||||
var caps []adapter.Capability
|
var caps []adapter.Capability
|
||||||
|
|
||||||
caps = append(caps, adapter.Capability{
|
|
||||||
ID: "posts",
|
|
||||||
Name: "Posts",
|
|
||||||
})
|
|
||||||
caps = append(caps, adapter.Capability{
|
|
||||||
ID: "groups",
|
|
||||||
Name: "Groups",
|
|
||||||
})
|
|
||||||
caps = append(caps, adapter.Capability{
|
|
||||||
ID: "search",
|
|
||||||
Name: "Search",
|
|
||||||
})
|
|
||||||
|
|
||||||
return caps
|
return caps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,18 +49,24 @@ func (sys *System) SetLogger(logger *zap.SugaredLogger) {
|
|||||||
func (sys *System) GetCapabilities() []adapter.Capability {
|
func (sys *System) GetCapabilities() []adapter.Capability {
|
||||||
var caps []adapter.Capability
|
var caps []adapter.Capability
|
||||||
|
|
||||||
caps = append(caps, adapter.Capability{
|
caps = append(caps,
|
||||||
ID: "posts",
|
adapter.Capability{
|
||||||
Name: "Posts",
|
ID: "list:posts",
|
||||||
})
|
Name: "List Posts",
|
||||||
caps = append(caps, adapter.Capability{
|
},
|
||||||
ID: "groups",
|
adapter.Capability{
|
||||||
Name: "Groups",
|
ID: "create:post",
|
||||||
})
|
Name: "Create Post",
|
||||||
caps = append(caps, adapter.Capability{
|
},
|
||||||
ID: "search",
|
adapter.Capability{
|
||||||
Name: "Search",
|
ID: "list:replies",
|
||||||
})
|
Name: "List Replies",
|
||||||
|
},
|
||||||
|
adapter.Capability{
|
||||||
|
ID: "create:reply",
|
||||||
|
Name: "Create Reply",
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
return caps
|
return caps
|
||||||
}
|
}
|
||||||
|
@ -47,18 +47,16 @@ func (sys *System) SetLogger(logger *zap.SugaredLogger) {
|
|||||||
func (sys *System) GetCapabilities() []adapter.Capability {
|
func (sys *System) GetCapabilities() []adapter.Capability {
|
||||||
var caps []adapter.Capability
|
var caps []adapter.Capability
|
||||||
|
|
||||||
caps = append(caps, adapter.Capability{
|
caps = append(caps,
|
||||||
ID: "posts",
|
adapter.Capability{
|
||||||
Name: "Posts",
|
ID: "list:posts",
|
||||||
})
|
Name: "List Posts",
|
||||||
caps = append(caps, adapter.Capability{
|
},
|
||||||
ID: "groups",
|
adapter.Capability{
|
||||||
Name: "Groups",
|
ID: "list:replies",
|
||||||
})
|
Name: "List Replies",
|
||||||
caps = append(caps, adapter.Capability{
|
},
|
||||||
ID: "search",
|
)
|
||||||
Name: "Search",
|
|
||||||
})
|
|
||||||
|
|
||||||
return caps
|
return caps
|
||||||
}
|
}
|
||||||
|
@ -48,18 +48,16 @@ func (sys *System) SetLogger(logger *zap.SugaredLogger) {
|
|||||||
func (sys *System) GetCapabilities() []adapter.Capability {
|
func (sys *System) GetCapabilities() []adapter.Capability {
|
||||||
var caps []adapter.Capability
|
var caps []adapter.Capability
|
||||||
|
|
||||||
caps = append(caps, adapter.Capability{
|
caps = append(caps,
|
||||||
ID: "posts",
|
adapter.Capability{
|
||||||
Name: "Posts",
|
ID: "list:posts",
|
||||||
})
|
Name: "List Posts",
|
||||||
caps = append(caps, adapter.Capability{
|
},
|
||||||
ID: "groups",
|
adapter.Capability{
|
||||||
Name: "Groups",
|
ID: "create:post",
|
||||||
})
|
Name: "Create Post",
|
||||||
caps = append(caps, adapter.Capability{
|
},
|
||||||
ID: "search",
|
)
|
||||||
Name: "Search",
|
|
||||||
})
|
|
||||||
|
|
||||||
return caps
|
return caps
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user