package com.cyksj.model.entity;

import com.cyksj.model.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/*
 *项目名: netflix
 *文件名: UserBalanceSourceRecord
 *创建者: JavaZou
 *创建时间:2023/6/9 12:29
 */
@Getter
@Setter
public class UserBalanceSourceRecord extends BaseEntity {
	private Long userId;

	private BigDecimal balance;

	private Source source;

	private String detail;

	private String remark;

	private String operator;

	private Long orderId;

	@Getter
	public enum Source {
		payment("购买"),
		refund("退款"),
		order_close("订单关闭"),
		upgrade_close("增值订单关闭"),
		clear_valid("未到期车票清除"),
		ds_transport("分销实物发货"),
		follow_task("关注引导"),
		rd_comment("实物评论"),
		price_differ("订单补差价"),
		compensate("系统补偿"),
		manual("手动扣除"),
		add("手动增加"),
		distribute_rank("分销排行"),
		wholesale_differ("返批发差价"),
		wholesale_order("批发订单"),
		vip_order("会员下单"),
		vip_refund("会员退款"),
		TICKET_REPLACE("车票替换"),
		vip_order_close("会员订单关闭"),
		;
		String desc;

		Source(String desc) {
			this.desc = desc;
		}
	}
}

