new api for common configs
This commit is contained in:
1 parent
da1b6caf67
commit
33621ff523
10 files changed
+190
-51
No files matched your search
+2
-2
@@ -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 {
|
||||
|
||||
@@ -35,6 +35,10 @@ type DeleteConfigs struct {
|
||||
Ids []string
|
||||
}
|
||||
|
||||
type DeleteCommonConfig struct {
|
||||
Id string
|
||||
}
|
||||
|
||||
type UpsertCommonConfig struct {
|
||||
Config entity.CommonConfig
|
||||
Create bool
|
||||
|
||||
Reference in new issue
Block a user