28 lines
440 B
Go
28 lines
440 B
Go
package request
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// 购买聊天室表情
|
|
type GetUserGuardSeatRequest struct {
|
|
AccessToken string
|
|
HostUserId string
|
|
}
|
|
|
|
// 参数合法性检验
|
|
func (request *GetUserGuardSeatRequest) CheckParameter() (err error) {
|
|
|
|
if len(request.AccessToken) == 0 {
|
|
err = errors.New("AccessToken不能为空")
|
|
return
|
|
}
|
|
|
|
if len(request.HostUserId) == 0 {
|
|
err = errors.New("HostUserId不能为空")
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|