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 {
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -49,18 +49,24 @@ func (sys *System) SetLogger(logger *zap.SugaredLogger) {
|
||||
func (sys *System) GetCapabilities() []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",
|
||||
})
|
||||
caps = append(caps,
|
||||
adapter.Capability{
|
||||
ID: "list:posts",
|
||||
Name: "List Posts",
|
||||
},
|
||||
adapter.Capability{
|
||||
ID: "create:post",
|
||||
Name: "Create Post",
|
||||
},
|
||||
adapter.Capability{
|
||||
ID: "list:replies",
|
||||
Name: "List Replies",
|
||||
},
|
||||
adapter.Capability{
|
||||
ID: "create:reply",
|
||||
Name: "Create Reply",
|
||||
},
|
||||
)
|
||||
|
||||
return caps
|
||||
}
|
||||
|
@ -47,18 +47,16 @@ func (sys *System) SetLogger(logger *zap.SugaredLogger) {
|
||||
func (sys *System) GetCapabilities() []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",
|
||||
})
|
||||
caps = append(caps,
|
||||
adapter.Capability{
|
||||
ID: "list:posts",
|
||||
Name: "List Posts",
|
||||
},
|
||||
adapter.Capability{
|
||||
ID: "list:replies",
|
||||
Name: "List Replies",
|
||||
},
|
||||
)
|
||||
|
||||
return caps
|
||||
}
|
||||
|
@ -48,18 +48,16 @@ func (sys *System) SetLogger(logger *zap.SugaredLogger) {
|
||||
func (sys *System) GetCapabilities() []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",
|
||||
})
|
||||
caps = append(caps,
|
||||
adapter.Capability{
|
||||
ID: "list:posts",
|
||||
Name: "List Posts",
|
||||
},
|
||||
adapter.Capability{
|
||||
ID: "create:post",
|
||||
Name: "Create Post",
|
||||
},
|
||||
)
|
||||
|
||||
return caps
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user