mirror of
https://github.com/status-im/status-go.git
synced 2025-01-18 18:55:47 +00:00
735a422230
* chore_: create v2 endpoints for status.go to use status-backend server * feat_: support using http for media server (#6060)
20 lines
558 B
Go
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)
|
|
}
|