Skip to content

Commit

Permalink
Fix: DeleteConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
1ch0 committed Aug 7, 2023
1 parent 1fff824 commit d31bb9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ func (c *Client) PublishConfig(req *PublishConfigRequest) error {

// DeleteConfig 删除配置
func (c *Client) DeleteConfig(req *ConfigBase) error {
result := BoolResult
return c.set(http.MethodDelete, IPathConfig, req).
do(&struct{}{},
do(result,
map[string]string{
ConfigDataId: req.DataId,
Tenant: req.Tenant,
Expand Down

0 comments on commit d31bb9f

Please sign in to comment.