package com.panzhihua.service_community.model.dos;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import lombok.Data;
|
|
/**
|
* @auther lyq
|
* @create 2021-06-25 10:35:22
|
* @describe 用户钱包交易记录表实体类
|
*/
|
|
@Data
|
@TableName("com_act_user_wallet_trade")
|
public class ComActUserWalletTradeDO implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(type = IdType.ASSIGN_ID)
|
private Long id;
|
|
/**
|
* 用户id
|
*/
|
private Long userId;
|
|
/**
|
* 社区id
|
*/
|
private Long communityId;
|
|
/**
|
* 交易业务id
|
*/
|
private Long serviceId;
|
|
/**
|
* 交易金额
|
*/
|
private BigDecimal amount;
|
|
/**
|
* 交易类型(1.发布随手拍 2.结算)
|
*/
|
private Integer type;
|
|
/**
|
* 交易备注
|
*/
|
private String remark;
|
|
/**
|
* 交易时间
|
*/
|
private Date createAt;
|
|
/**
|
* 操作人id
|
*/
|
private Long createBy;
|
|
/**
|
* 钱包id
|
*/
|
private Long walletId;
|
|
/**
|
* 变动类型(1.增加 2.减少)
|
*/
|
private Integer changeType;
|
|
@Override
|
public String toString() {
|
return "ComActUserWalletTradeDO{" + "id=" + id + ", userId=" + userId + ", communityId=" + communityId
|
+ ", serviceId=" + serviceId + ", amount=" + amount + ", type=" + type + ", remark=" + remark
|
+ ", createAt=" + createAt + ", createBy=" + createBy + "}";
|
}
|
|
/**
|
* 交易类型(1.发布随手拍 2.结算)
|
*/
|
public interface type {
|
int fb = 1;
|
int js = 2;
|
}
|
|
/**
|
* 变动类型(1.增加 2.减少)
|
*/
|
public interface changeType {
|
int add = 1;
|
int reduce = 2;
|
}
|
}
|