[Modify]标签功能

This commit is contained in:
wushaocheng
2023-02-20 09:18:39 +08:00
parent 0428c74975
commit c43ba4b841
30 changed files with 439 additions and 131 deletions

View File

@@ -242,4 +242,9 @@ public interface IUserModel extends IModel {
*/
Single<String> saveLabel(String label);
/**
* 获取地区列表
*/
Single<List<String>> getAreaInfo();
}

View File

@@ -830,6 +830,13 @@ public final class UserModel extends BaseModel implements IUserModel {
@Override
public Single<String> saveLabel(String label) {
return api.saveLabel(label)
.compose(RxHelper.handleStringData())
.compose(RxHelper.handleSchedulers());
}
@Override
public Single<List<String>> getAreaInfo() {
return api.getAreaInfo()
.compose(RxHelper.handleBeanData())
.compose(RxHelper.handleSchedulers());
}
@@ -1096,5 +1103,11 @@ public final class UserModel extends BaseModel implements IUserModel {
@POST("/label/save")
Single<ServiceResult<String>> saveLabel(@Query("labels") String labels);
/**
* 获取地区列表
*/
@GET("/region/config")
Single<ServiceResult<List<String>>> getAreaInfo();
}
}

View File

@@ -70,6 +70,15 @@ public class UserDetailInfo implements Serializable {
private List<PrivatePhotoBean> privatePhoto;
private String nameplatePic;
private String nameplateWord;
private String region;
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public long getRoomUid() {
return roomUid;

View File

@@ -106,6 +106,8 @@ public class UserInfo implements Serializable {
//1普通账号2官方账号3机器账号 ,4公会账号
private int defUser;
//地区
@Getter
@Setter
private String region;
//个人简介
private String userDesc;
@@ -302,6 +304,12 @@ public class UserInfo implements Serializable {
@Setter
private boolean hasPermitRoom;
/**
* 标签
*/
@Getter
private List<String> labels;
public UserInfo() {
}
@@ -519,14 +527,6 @@ public class UserInfo implements Serializable {
this.defUser = defUser;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public String getUserDesc() {
return userDesc;
}

View File

@@ -16,5 +16,4 @@ public class ClanInfo {
private boolean userIsElder;
private long hallId;
private String levelIcon;
}

View File

@@ -41,4 +41,5 @@ public class HallInfo {
* 厅主昵称
*/
private String ownerNick;
}