new api for common configs

This commit is contained in:
ykomissarov committed 2019-10-30 12:47:35 +03:00
1 parent da1b6caf67
commit 33621ff523
10 files changed
+190 -51

No files matched your search

+2 -2
View File
@@ -72,8 +72,8 @@ func PrepareUpdateConfigSchemaCommand(schema entity.ConfigSchema) []byte {
return prepareCommand(UpdateConfigSchemaCommand, schema)
}
func PrepareDeleteCommonConfigsCommand(ids []string) []byte {
return prepareCommand(DeleteCommonConfigsCommand, DeleteModules{Ids: ids})
func PrepareDeleteCommonConfigsCommand(id string) []byte {
return prepareCommand(DeleteCommonConfigsCommand, DeleteCommonConfig{Id: id})
}
func PrepareUpsertCommonConfigCommand(config UpsertCommonConfig) []byte {
+4
View File
@@ -35,6 +35,10 @@ type DeleteConfigs struct {
Ids []string
}
type DeleteCommonConfig struct {
Id string
}
type UpsertCommonConfig struct {
Config entity.CommonConfig
Create bool