package request import "errors" type SetUserAliasNameRequest struct { BaseRequest TargetUserId string AliasName string } // 参数验证 func (request *SetUserAliasNameRequest) CheckParameter() (err error) { if len(request.AccessToken) == 0 { err = errors.New("AccessToken不能为空") return } if len(request.TargetUserId) == 0 { err = errors.New("TargetUserId不能为空") return } if len(request.AliasName) == 0 { err = errors.New("AliasName不能为空") return } return }