46 lines
1.1 KiB
Java
46 lines
1.1 KiB
Java
|
|
package com.xscm.moduleutil.bean;
|
||
|
|
|
||
|
|
|
||
|
|
import lombok.Data;
|
||
|
|
/**
|
||
|
|
*@author qx
|
||
|
|
*@data 2025/6/12
|
||
|
|
*@description: 礼物
|
||
|
|
*/
|
||
|
|
@Data
|
||
|
|
public class RoonGiftModel {
|
||
|
|
private String gid;//礼物id
|
||
|
|
private String gift_name;//礼物名称
|
||
|
|
private String base_image;//礼物图片
|
||
|
|
private String gift_price;//礼物价格
|
||
|
|
private String gift_id;//礼物id
|
||
|
|
private String gift_bag_name;
|
||
|
|
private String rule;
|
||
|
|
private String rule_url;
|
||
|
|
|
||
|
|
|
||
|
|
private String title;
|
||
|
|
private String all_room_push;
|
||
|
|
private String special;
|
||
|
|
private String sort;
|
||
|
|
private String type;
|
||
|
|
private String child_type;
|
||
|
|
private String sold;
|
||
|
|
private String cardiac;
|
||
|
|
private boolean isChecked;
|
||
|
|
private boolean isSelected;
|
||
|
|
private boolean can_send_self;//是否能送自己
|
||
|
|
private int num;//礼物数量
|
||
|
|
|
||
|
|
public boolean isCan_send_self() {
|
||
|
|
if ( isManghe()) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
return can_send_self;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isManghe() {
|
||
|
|
return type.equals("4") || type.equals("5") || type.equals("13");
|
||
|
|
}
|
||
|
|
}
|