status-go/protocol/requests/delete_multiaccount.go
frank 735a422230
chore_: create v2 endpoints for status.go to solve EndpointsUnsupported in endpoints.go (#5943)
* chore_: create v2 endpoints for status.go to use status-backend server

* feat_: support using http for media server (#6060)
2024-11-19 09:31:29 +00:00

20 lines
558 B
Go

package requests
import (
"gopkg.in/go-playground/validator.v9"
)
// DeleteMultiaccount represents a request to delete a multiaccount.
type DeleteMultiaccount struct {
// KeyUID is the unique identifier for the key.
KeyUID string `json:"keyUID" validate:"required"`
// KeyStoreDir is the directory where the keystore files are located.
KeyStoreDir string `json:"keyStoreDir" validate:"required"`
}
// Validate checks the validity of the DeleteMultiaccount request.
func (v *DeleteMultiaccount) Validate() error {
return validator.New().Struct(v)
}