19 lines
202 B
Go
19 lines
202 B
Go
|
package amo
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func (client *Client) updateEntity(
|
||
|
u string,
|
||
|
id int,
|
||
|
body any,
|
||
|
) error {
|
||
|
err := client.API.Patch(
|
||
|
fmt.Sprintf(
|
||
|
"%s/%d",
|
||
|
u, id,
|
||
|
),
|
||
|
body, nil,
|
||
|
)
|
||
|
return err
|
||
|
}
|