def METHOD_NAME(tag_list):
    """处理前端传的 deploy_tag ，需要判断 deploy_tag 是属于 Deployment/StatefulSet/job/DaemonSet"""
    resource_tag_map = {}
    for tag in tag_list:
        if not tag:
            continue
        deploy_tag, res_name = tag.split("|")
        if res_name not in base.POD_RES_LIST:
            res_name = K8sResourceName.K8sDeployment.value
        if res_name in resource_tag_map:
            deploy_tag_list = resource_tag_map[res_name]
            deploy_tag_list.append(deploy_tag)
            resource_tag_map[res_name] = deploy_tag_list
        else:
            resource_tag_map[res_name] = [
                deploy_tag,
            ]
    return resource_tag_map