import copy


def build_request_parameters(issue_params, cve_params):
    """
    构建请求参数
    Args:
        issue_params: Issue请求参数
        cve_params: cve请求参数

    Returns:
        issue_params_list, cve_params_list
    """
    parameters_issue = {
        "community": "openeuler",
        "state": "all",
        "milestone": "",
        "sortKey": "closed_at",
        "sortValue": "descending",
    }
    parameters_cve = {
        "community": "openeuler",
        "state": "all",
        "milestone": "",
        "sortKey": "closed_at",
        "sortValue": "descending",
    }
    issue_params_list, cve_params_list = [], []
    for issue_con in issue_params:
        parameters_issue["milestone"] = issue_con
        issue_params_list.append(copy.copy(parameters_issue))
    for cve_con in cve_params:
        parameters_cve["milestone"] = cve_con
        cve_params_list.append(copy.copy(parameters_cve))
    return issue_params_list, cve_params_list