20 lines
278 B
Go
20 lines
278 B
Go
|
package requests
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
var ErrDeactivateChatInvalidID = errors.New("deactivate-chat: invalid id")
|
||
|
|
||
|
type DeactivateChat struct {
|
||
|
ID string
|
||
|
}
|
||
|
|
||
|
func (j *DeactivateChat) Validate() error {
|
||
|
if len(j.ID) == 0 {
|
||
|
return ErrDeactivateChatInvalidID
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|