TempRights.java 1.9 KB
package com.topdraw.business.process.domian;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * 权益-非持久化数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TempRights {

    /** 主键 */
    @Transient
    protected Long id;

    /** 编号 */
    @Transient
    protected String code;

    /** 权益名称 */
    @Transient
    protected String name;

    /** 会员ID */
    @Transient
    protected Long memberId;

    /** 会员编号 */
    @Transient
    protected String memberCode;

    /** 账号id  */
    @Transient
    protected Long userId;

    /**  发放策略  */
    @Transient
    protected Integer rightsSendStrategy;

    /**  账号id  */
    @Transient
    protected Long accountId;

    /**  过期时间  */
    @Transient
    protected LocalDateTime expireTime;


    /**  设备类型 1:大屏;2:小屏(微信)3.小屏(xx)  */
    @Transient
    protected Integer deviceType;

    /**  应用code(表示当前用户对应应用的标识)  */
    @Transient
    protected String appCode;

    /**  订单id  */
    @Transient
    protected Long orderId;

    /**  节目id(针对观影操作)  */
    @Transient
    protected Long mediaId;

    /**  活动id(针对参与活动)  */
    @Transient
    protected Long activityId;

    /**  商品id  */
    @Transient
    protected Long itemId;

    /**  积分变化描述,用于管理侧显示  */
    @Transient
    protected String description;

    /**  行为事件类型 1:登录;2:观影;3:参与活动;4:订购;10:跨屏绑定;11:积分转移;98:系统操作;99:其他  */
    @Transient
    protected Integer evtType;

    /** 数量 */
    @Transient
    protected Integer rightsAmount;

}