Files
servicebase/pkg/dto/request/GetUserGuardSeatRequest.go
2025-11-19 14:24:13 +08:00

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
}