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