举报通知开发
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package com.yunbao.common.bean;
|
||||
|
||||
public class ReportInfoBean {
|
||||
/* {
|
||||
"touid": 99455,
|
||||
"user_nicename": "小盒主播2",
|
||||
"avatar": "https://downs.yaoulive.com/20240516102555_cf329486d39121125b182a779bbc3278?imageView2/2/w/600/h/600"
|
||||
}*/
|
||||
|
||||
private String touid;
|
||||
private String user_nicename;
|
||||
private String avatar;
|
||||
|
||||
public String getTouid() {
|
||||
return touid;
|
||||
}
|
||||
|
||||
public void setTouid(String touid) {
|
||||
this.touid = touid;
|
||||
}
|
||||
|
||||
public String getUser_nicename() {
|
||||
return user_nicename;
|
||||
}
|
||||
|
||||
public void setUser_nicename(String user_nicename) {
|
||||
this.user_nicename = user_nicename;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
}
|
||||
@@ -68,5 +68,7 @@ public class LiveHttpConsts {
|
||||
public static final String ISHOTCARD = "isHotCard";
|
||||
public static final String USEHOTCARDUSERLIST = "useHotCardUserList";
|
||||
public static final String SETINSTRUCTORREMARK = "getInstructorRemark";
|
||||
public static final String SETREPORTREPLENISHMENT = "setReportReplenishment";
|
||||
public static final String GETREPORTINFO = "getReportInfo";
|
||||
|
||||
}
|
||||
|
||||
@@ -264,6 +264,36 @@ public class LiveHttpUtil {
|
||||
request.execute(callback);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 举报用户 + 图片 二次补充证据
|
||||
*/
|
||||
public static void setReportToSecondReport(int report_id, String content, File file1, File file2, File file3, HttpCallback callback) {
|
||||
PostRequest<JsonBean> request = HttpClient.getInstance().post("Live.setReportReplenishment", LiveHttpConsts.SETREPORTREPLENISHMENT)
|
||||
.isMultipart(true)
|
||||
.params("report_id", report_id)
|
||||
.params("content", content);
|
||||
if (file1 != null) {
|
||||
request.params("file1", file1);
|
||||
}
|
||||
if (file2 != null) {
|
||||
request.params("file2", file2);
|
||||
}
|
||||
if (file3 != null) {
|
||||
request.params("file3", file3);
|
||||
}
|
||||
request.execute(callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取被举报人的名字
|
||||
*/
|
||||
public static void getReportName(int report_id, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Live.getReportInfo", LiveHttpConsts.GETREPORTINFO)
|
||||
.params("report_id", report_id)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 直播间点击聊天列表和头像出现的弹窗
|
||||
*/
|
||||
|
||||
@@ -57,6 +57,7 @@ public class RouteUtil {
|
||||
public static final String PATH_FEEDBACK_ACTIVITY = "/main/FeedbackActivity";
|
||||
public static final String PATH_FEEDBACK_EDIT_ACTIVITY = "/main/FeedbackEditActivity";
|
||||
public static final String PATH_LIVE_PUNISHACTIVITY = "/live/PunishActivity";
|
||||
public static final String PATH_LIVE_REPORT_SECOND = "/live/ReportSecondActivity";
|
||||
|
||||
|
||||
public static void forwardCommunityActivity() {
|
||||
@@ -178,6 +179,12 @@ public class RouteUtil {
|
||||
.navigation();
|
||||
}
|
||||
|
||||
public static void forwardLiveSecondReportActivity(int users_report_id) {
|
||||
ARouter.getInstance().build(PATH_LIVE_REPORT_SECOND)
|
||||
.withInt("users_report_id", users_report_id)
|
||||
.navigation();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 跳转到装扮
|
||||
|
||||
Reference in New Issue
Block a user