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

27 lines
430 B
Go

package inner
import (
"errors"
)
type GetActivityBossRequest struct {
AccessToken string
ActivityId string
RoomId string
}
// 参数合法性检验
func (request *GetActivityBossRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
if len(request.ActivityId) == 0 {
err = errors.New("ActivityId不能为空")
return
}
return
}