package com.ss.android.ugc.aweme.feed.ui.masklayer2.api;

import X.6tJ;
import X.9DY;
import X.AnonymousClass2b0;
import X.HkW;
import X.IUu;
import X.JLw;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.base.api.BaseResponse;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import java.util.HashMap;
import java.util.Map;

public final class DislikeReasonApi {
    public static final RealApi LIZ = ((RealApi) AnonymousClass2b0.LIZ(9DY.LJ, RealApi.class));

    public interface RealApi {
        static {
            Covode.recordClassIndex(79746);
        }

        @IUu(LIZ = "/aweme/v1/commit/dislike/item/")
        @6tJ
        JLw<BaseResponse> disLikeReason(@HkW Map<String, String> map);
    }

    static {
        Covode.recordClassIndex(79745);
    }

    public static String LIZ(Aweme aweme, String str, String str2) {
        String str3 = "";
        if (aweme == null) {
            return str3;
        }
        HashMap hashMap = new HashMap();
        hashMap.put("dislike_reason_id", str);
        if (aweme.getMusic() != null) {
            str3 = aweme.getMusic().getMid();
        }
        hashMap.put("music_id", str3);
        hashMap.put("author_id", aweme.getAuthorUid());
        if (!TextUtils.isEmpty(str2)) {
            hashMap.put("commit_type", str2);
        }
        LIZ.disLikeReason(hashMap).execute();
        return str;
    }
}
