Replace all interface{} to any

This commit is contained in:
Tnze
2023-04-05 19:35:20 +08:00
parent 195945e4ca
commit a42267ba31
21 changed files with 52 additions and 52 deletions

View File

@ -52,7 +52,7 @@ func New(version, user, astk, uuid string) *Realms {
return r
}
func (r *Realms) get(endpoint string, resp interface{}) error {
func (r *Realms) get(endpoint string, resp any) error {
rawResp, err := r.c.Get(Domain + endpoint)
if err != nil {
return err
@ -67,7 +67,7 @@ func (r *Realms) get(endpoint string, resp interface{}) error {
return nil
}
func (r *Realms) post(endpoint string, payload, resp interface{}) error {
func (r *Realms) post(endpoint string, payload, resp any) error {
data, err := json.Marshal(payload)
if err != nil {
return err