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 }