package com.cyksj.model.views;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cyksj.model.entity.Address;
import com.cyksj.model.manage.views.CorpWxOrderDonView;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/*
 *项目名: netflix
 *文件名: YhlxUserDetailView
 *创建者: JavaZou
 *创建时间:2022/11/11 14:48
 */
@Getter
@Setter
@SearchBean(tables = "user u")
public class YHLXUserDetailView {
	/**
	 * 用户id
	 */
	@DbField("u.id")
	private Long userId;

	/**
	 * 昵称
	 */
	@DbField("u.nickname")
	private String nickname;

	@DbField("u.unionid")
	@JsonIgnore
	private String unionId;

	/**
	 * 头像
	 */
	@DbField("u.headimgurl")
	private String headImgUrl;

	@DbIgnore
	private String markInfo;

	/**
	 * 是否已绑定其他用户
	 */
	@DbIgnore
	private Boolean isBind = false;

	@DbIgnore
	@TableField(exist = false)
	private Address address;

	/**
	 * 车票信息
	 */
	@DbIgnore
	@TableField(exist = false)
	private List<TicketView> ticketViews;

	/**
	 * 订单信息
	 */
	@DbIgnore
	@TableField(exist = false)
	private List<CorpWxOrderDonView> orderDonViews;
}
